Skip to content

FEATURE: Search like vim search in neo-tree #1637

@Kaiser-Yang

Description

@Kaiser-Yang

Did you check the docs?

  • I have read all the docs.

Is your feature request related to a problem? Please describe.

What I want is to search the files or symbols like in vim search.

Let me explain it:

When in neo-tree windows, I use / or ? to search forward or backward ( I don't bind these with neo-tree's commands, just act as the nvim's search). You may be conscious of a question that this can only search the visible contens. For example, if there is a unexpanded directory, / or ? can not get the files or directories in the unexpanded directory. So in order to make this work properly, I must expand all the nodes at first, then use / or ? to search.

Describe the solution you'd like.

What I really want I can bind / with vim_search_forward and ? with vim_search_backward or something like these.

For vim_search_forward, there will pop up a window like filter. As I type, the matched file will expand its ancestors. Then after I press the enter key or something I can bind (like a vim_search_confirm command), it will make the cursor to the first matched one.
And every time I press n, the cursor goes to next matched, N for the previous one (or there may be commands like vim_search_next and vim_search_prev).

For vim_search_backward, it just search the content backward.

Describe alternatives you've considered.

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions