feature: footer keys on the picker
Did you check the docs?
- [x] I have read all the snacks.nvim docs
Is your feature request related to a problem? Please describe.
Snacks.picker is now a central piece of my Neovim setup. However, some pickers that I use less often have some extra keybindings I struggle to remember.
Describe the solution you'd like
It would be great to have a footer_keys option enabling a footer with the keys, but something a bit more dynamic than the win.footer_keys that would display the keys for the current active window (input, list, preview) below the current layout.
Describe alternatives you've considered
Already tried using:
picker.win.input.footer_keys: break the display (to many keys to display for the size)picker.win.list.footer_keys: nothing displayedpicker.win.preview.footer_keys: currently enabled in my config, only display the preview shortcut
This approach makes many keys in a small place (in the case of half listing, half preview), displays duplicate common keys (cancel, cycle_win...), and is not contextual (displayed for each part of the layout, focused or not).
Additional context
No response
I just pushed a change where opts.footer_keys can now also be a list of lhs keymaps to display, instead of just showing all of them.
Thanks, it will be useful for some cases.
After submitting this issue, I gave a try at what I had in mind resulting in #2501. I would love some feedback on it 🙏🏼
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.