mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 03:27:55 +03:00
Add some default readline bindings
This commit is contained in:
parent
27418eed88
commit
fd36435262
@ -13,13 +13,23 @@ var _ = fmt.Print
|
||||
|
||||
var default_shortcuts = map[string]Action{
|
||||
"backspace": ActionBackspace,
|
||||
"ctrl+h": ActionBackspace,
|
||||
"delete": ActionDelete,
|
||||
"home": ActionMoveToStartOfLine,
|
||||
"end": ActionMoveToEndOfLine,
|
||||
"ctrl+d": ActionDelete,
|
||||
|
||||
"home": ActionMoveToStartOfLine,
|
||||
"ctrl+a": ActionMoveToStartOfLine,
|
||||
|
||||
"end": ActionMoveToEndOfLine,
|
||||
"ctrl+e": ActionMoveToEndOfLine,
|
||||
|
||||
"ctrl+home": ActionMoveToStartOfDocument,
|
||||
"ctrl+end": ActionMoveToEndOfDocument,
|
||||
"left": ActionCursorLeft,
|
||||
"right": ActionCursorRight,
|
||||
|
||||
"left": ActionCursorLeft,
|
||||
"ctrl+b": ActionCursorLeft,
|
||||
"right": ActionCursorRight,
|
||||
"ctrl+f": ActionCursorRight,
|
||||
}
|
||||
|
||||
func action_for_key_event(event *loop.KeyEvent, shortcuts map[string]Action) Action {
|
||||
|
Loading…
Reference in New Issue
Block a user