mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(picker): show help for input / list window with ?
.
This commit is contained in:
parent
83a0cdd7cc
commit
87dab7eca7
2 changed files with 10 additions and 1 deletions
|
@ -361,6 +361,14 @@ function M.help(picker)
|
|||
end
|
||||
end
|
||||
|
||||
function M.toggle_help_input(picker)
|
||||
picker.input.win:toggle_help()
|
||||
end
|
||||
|
||||
function M.toggle_help_list(picker)
|
||||
picker.list.win:toggle_help()
|
||||
end
|
||||
|
||||
function M.preview_scroll_down(picker)
|
||||
if picker.preview.win:valid() then
|
||||
picker.preview.win:scroll()
|
||||
|
|
|
@ -192,7 +192,7 @@ local defaults = {
|
|||
["k"] = "list_up",
|
||||
["/"] = "toggle_focus",
|
||||
["q"] = "close",
|
||||
["?"] = "toggle_help",
|
||||
["?"] = "toggle_help_input",
|
||||
["<a-d>"] = { "inspect", mode = { "n", "i" } },
|
||||
["<c-a>"] = { "select_all", mode = { "n", "i" } },
|
||||
["<a-m>"] = { "toggle_maximize", mode = { "i", "n" } },
|
||||
|
@ -238,6 +238,7 @@ local defaults = {
|
|||
["j"] = "list_down",
|
||||
["k"] = "list_up",
|
||||
["q"] = "close",
|
||||
["?"] = "toggle_help_list",
|
||||
["<Tab>"] = { "select_and_next", mode = { "n", "x" } },
|
||||
["<S-Tab>"] = { "select_and_prev", mode = { "n", "x" } },
|
||||
["<Down>"] = "list_down",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue