Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
Kaiser-Yang opened this issue Dec 31, 2024 · 0 comments
Open
1 task done

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

Kaiser-Yang opened this issue Dec 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kaiser-Yang
Copy link

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

@Kaiser-Yang Kaiser-Yang added the enhancement New feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant