Skip to content

Feature Suggestion: Hints for objects *outside* nodes containing the cursor #33

@chrisgrieser

Description

@chrisgrieser

I just stumbled upon this plugin and I must say, I find it's concept very intriguing.

Having played around with it for a bit, I noticed that this plugin restricts the hints and therefore actionable area to nodes containing the cursor. When in a big, deeply nested node like in the demo in the readme, that makes sense, but when in areas with a long sequence of non-nested nodes like an array, this makes the plugin rather unuseful:
CleanShot 2023-04-01 at 14 56 06

So my idea is to introduce options to change the area actionable (= getting hints) from the plugin:

  • currently, we can action on nodes containing the cursor
  • one option could be nodes not containing the cursor, i.e. inverting the actionable area. This could be interesting, since you can often select things that contain the cursor via other text objects already. However, objects at a distance are far more limited to interact with (apart from the forward-seeking from plugins like targets.vim)
  • or one could simply enable hints for all nodes, or all nodes after/before the cursor?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions