mirror of
https://github.com/sxyazi/yazi.git
synced 2024-11-24 01:48:00 +03:00
feat: make F1
also show the help menu (#1336)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
4a0522640d
commit
af0fb5955b
@ -151,7 +151,8 @@ keymap = [
|
||||
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Go to a directory interactively" },
|
||||
|
||||
# Help
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[tasks]
|
||||
@ -171,7 +172,9 @@ keymap = [
|
||||
{ on = "<Enter>", run = "inspect", desc = "Inspect the task" },
|
||||
{ on = "x", run = "cancel", desc = "Cancel the task" },
|
||||
|
||||
{ on = "~", run = "help", desc = "Open help" }
|
||||
# Help
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[select]
|
||||
@ -194,7 +197,9 @@ keymap = [
|
||||
{ on = "<S-Up>", run = "arrow -5", desc = "Move cursor up 5 lines" },
|
||||
{ on = "<S-Down>", run = "arrow 5", desc = "Move cursor down 5 lines" },
|
||||
|
||||
{ on = "~", run = "help", desc = "Open help" }
|
||||
# Help
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[input]
|
||||
@ -263,7 +268,8 @@ keymap = [
|
||||
{ on = "<C-r>", run = "redo", desc = "Redo the last operation" },
|
||||
|
||||
# Help
|
||||
{ on = "~", run = "help", desc = "Open help" }
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[completion]
|
||||
@ -282,7 +288,9 @@ keymap = [
|
||||
{ on = "<C-p>", run = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = "<C-n>", run = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = "~", run = "help", desc = "Open help" }
|
||||
# Help
|
||||
{ on = "~", run = "help", desc = "Open help" },
|
||||
{ on = "<F1>", run = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[help]
|
||||
|
Loading…
Reference in New Issue
Block a user