mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: add <Home> and <End> to [input] keymap
This commit is contained in:
parent
dc1718fcf0
commit
4222c0ed45
1 changed files with 6 additions and 4 deletions
|
|
@ -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" },
|
||||
|
||||
# Line-wise movement
|
||||
{ on = [ "0" ], exec = "move -999", desc = "Move to the BOL" },
|
||||
{ on = [ "$" ], exec = "move 999", desc = "Move to the EOL" },
|
||||
{ on = [ "<C-a>" ], exec = "move -999", desc = "Move to the BOL" },
|
||||
{ on = [ "<C-e>" ], exec = "move 999", desc = "Move to the EOL" },
|
||||
{ on = [ "0" ], exec = "move -999", desc = "Move to the BOL" },
|
||||
{ on = [ "$" ], exec = "move 999", desc = "Move to the EOL" },
|
||||
{ on = [ "<C-a>" ], exec = "move -999", desc = "Move to the BOL" },
|
||||
{ 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
|
||||
{ on = [ "<Backspace>" ], exec = "backspace", desc = "Delete the character before the cursor" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue