snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

feature: footer keys on the picker

Open noirbizarre opened this issue 1 month ago • 2 comments

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.

Image

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 displayed
  • picker.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

noirbizarre avatar Nov 07 '25 12:11 noirbizarre

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.

folke avatar Nov 09 '25 08:11 folke

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 🙏🏼

noirbizarre avatar Nov 11 '25 13:11 noirbizarre

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.

github-actions[bot] avatar Dec 12 '25 02:12 github-actions[bot]