feat: Add <C-n> and <C-p> for moving the cursor

These 2 key binds are for moving the cursor down and up respectively in
the completion menu.
This commit is contained in:
hankertrix 2024-03-05 15:31:46 +08:00
parent 497aa26f75
commit 82b78d31df

View file

@ -276,6 +276,9 @@ keymap = [
{ on = [ "<Up>" ], run = "arrow -1", desc = "Move cursor up" },
{ on = [ "<Down>" ], run = "arrow 1", desc = "Move cursor down" },
{ 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" }
]