add <Home>/<End> to [input] keymap

This commit is contained in:
grig-iv 2024-02-10 22:52:31 +03:00
parent dc1718fcf0
commit a1dca1a71b

View file

@ -222,10 +222,12 @@ keymap = [
{ on = [ "<A-f>" ], exec = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, { on = [ "<A-f>" ], exec = "forward --end-of-word", desc = "Move forward to the end of the current or next word" },
# Line-wise movement # Line-wise movement
{ on = [ "0" ], exec = "move -999", desc = "Move to the BOL" }, { on = [ "0" ], exec = "move -999", desc = "Move to the BOL" },
{ on = [ "$" ], exec = "move 999", desc = "Move to the EOL" }, { on = [ "$" ], exec = "move 999", desc = "Move to the EOL" },
{ on = [ "<C-a>" ], exec = "move -999", desc = "Move to the BOL" }, { on = [ "<C-a>" ], exec = "move -999", desc = "Move to the BOL" },
{ on = [ "<C-e>" ], exec = "move 999", desc = "Move to the EOL" }, { on = [ "<C-e>" ], exec = "move 999", desc = "Move to the EOL" },
{ on = [ "<Home>" ], exec = "move -999", desc = "Move to the BOL" },
{ on = [ "<End>" ], exec = "move 999", desc = "Move to the EOL" },
# Delete # Delete
{ on = [ "<Backspace>" ], exec = "backspace", desc = "Delete the character before the cursor" }, { on = [ "<Backspace>" ], exec = "backspace", desc = "Delete the character before the cursor" },