feat: make F1 also show the help menu (#1336)

Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
Vladimir Panteleev 2024-07-24 11:13:52 +00:00 committed by GitHub
parent 4a0522640d
commit af0fb5955b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]