neo-tree.nvim icon indicating copy to clipboard operation
neo-tree.nvim copied to clipboard

Open fuzzy result in split

Open barreiroleo opened this issue 2 years ago • 3 comments

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!

barreiroleo avatar Aug 16 '22 20:08 barreiroleo

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?

cseickel avatar Aug 17 '22 02:08 cseickel

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.

barreiroleo avatar Aug 17 '22 02:08 barreiroleo