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

Open fuzzy result in split #489

Open
barreiroleo opened this issue Aug 16, 2022 · 3 comments
Open

Open fuzzy result in split #489

barreiroleo opened this issue Aug 16, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@barreiroleo
Copy link

barreiroleo commented Aug 16, 2022

When I do a fuzzy search, I would like to have a mapping to open the result in a split window.
There's a <c-p>/<c-n> for navigation, but I can't found the settings for doing what I want.
Are there something that I'm missing?
Thanks!

@cseickel cseickel added the enhancement New feature or request label Aug 17, 2022
@cseickel
Copy link
Contributor

That's just not an option right now. I never use the open in split/window picker commands myself so I never thought about it.

I'm not exactly sure what is the right way to go about this, given that mappings are often changed by users and the fuzzy finder mappings have very different actions from the default handlers. Also, since you are technically in insert mode during a fuzzy find it becomes tricky to find a suitable key combination.

Do you have any suggestions?

@barreiroleo
Copy link
Author

Maybe giving to user a key for exit the insert mode to perform operations like a filter_on_submit.
For example, on nvim-cmp I use <c-e> for exit from suggestions window. (my maps)

After all, does it mean merge filter_on_submit and fuzzy_search? I don't know, but when a I want search for a file my first instinct is to do a fuzzy and then is to late for a filter search.

Ref: hrsh7th/nvim-cmp/lua/cmp/config/mapping.lua handles that situation, here is possible to remap presets in insert mode.

@agoodshort
Copy link
Contributor

Maybe giving to user a key for exit the insert mode to perform operations like a filter_on_submit. For example, on nvim-cmp I use <c-e> for exit from suggestions window. (my maps)

I just created a PR for that #1568

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

3 participants