camspiers / snap

A fast finder system for neovim.
The Unlicense
490 stars 17 forks source link

Toggle preview window #12

Closed ahmedelgabri closed 3 years ago

ahmedelgabri commented 3 years ago

I work in a very big monorepo & it's very common to have files +8 folders deep & duplicate names, which doesn't usually fit in the search results window. What I liked about fzf + fzf.vim was the ability to toggle the preview window so I can see the full path when I get multiple matching results. So it will be great if there is an option to do that on the fly.

camspiers commented 3 years ago

Added in https://github.com/camspiers/snap/commit/c9d6dcc516d096f022bd30d0bb2640a3253d44ea

Use <C-h>

camspiers commented 3 years ago

@ahmedelgabri 😊

YodaEmbedding commented 3 years ago
gegoune commented 3 years ago

I am not sure if that is still the case but when I first tested snap I noticed that it wasn't possible to enable preview (configure it) but don't show by default, making it show only on demand by <C-h>. I barely ever need previews for buffers, files, etc, but would like to be able to peek in when needed.

camspiers commented 3 years ago

I will add the option to default to off to the new configuration API, and add auto detect for small terminal sizes

camspiers commented 3 years ago

See #42 for the new work on the configuration API. It will land probably this weekend.