add default keybindings CtrlShiftHome and CtrlShiftEnd (#4214)

This commit is contained in:
Mikko
2026-09-10 23:25:04 +02:00
committed by GitHub
parent 393cf24858
commit 6f2601f20e
4 changed files with 35 additions and 23 deletions
+4
View File
@@ -58,6 +58,8 @@ var bufdefaults = map[string]string{
"End": "EndOfLine",
"CtrlHome": "CursorStart",
"CtrlEnd": "CursorEnd",
"CtrlShiftHome": "SelectToStart",
"CtrlShiftEnd": "SelectToEnd",
"PageUp": "CursorPageUp",
"PageDown": "CursorPageDown",
"CtrlPageUp": "PreviousTab|LastTab",
@@ -154,6 +156,8 @@ var infodefaults = map[string]string{
"End": "EndOfLine",
"CtrlHome": "CursorStart",
"CtrlEnd": "CursorEnd",
"CtrlShiftHome": "SelectToStart",
"CtrlShiftEnd": "SelectToEnd",
"Delete": "Delete",
"Ctrl-q": "AbortCommand",
"Ctrl-e": "EndOfLine",
+4
View File
@@ -61,6 +61,8 @@ var bufdefaults = map[string]string{
"End": "EndOfLine",
"CtrlHome": "CursorStart",
"CtrlEnd": "CursorEnd",
"CtrlShiftHome": "SelectToStart",
"CtrlShiftEnd": "SelectToEnd",
"PageUp": "CursorPageUp",
"PageDown": "CursorPageDown",
"CtrlPageUp": "PreviousTab|LastTab",
@@ -157,6 +159,8 @@ var infodefaults = map[string]string{
"End": "EndOfLine",
"CtrlHome": "CursorStart",
"CtrlEnd": "CursorEnd",
"CtrlShiftHome": "SelectToStart",
"CtrlShiftEnd": "SelectToEnd",
"Delete": "Delete",
"Ctrl-q": "AbortCommand",
"Ctrl-e": "EndOfLine",
+23 -23
View File
@@ -66,29 +66,29 @@ you can use `Ctrl-n` and `Ctrl-p` to cycle through matches.
### Text operations
| Key | Description of function |
|------------------------------------ |------------------------------------------ |
| Ctrl(Alt on Mac)-Shift-RightArrow | Select word right |
| Ctrl(Alt on Mac)-Shift-LeftArrow | Select word left |
| Alt(Ctrl on Mac)-Shift-LeftArrow | Select to start of current line |
| Alt(Ctrl on Mac)-Shift-RightArrow | Select to end of current line |
| Shift-Home | Select to start of current line |
| Shift-End | Select to end of current line |
| Ctrl-Shift-UpArrow | Select to start of file |
| Ctrl-Shift-DownArrow | Select to end of file |
| Ctrl-x | Cut selected text |
| Ctrl-c | Copy selected text |
| Ctrl-v | Paste |
| Ctrl-k | Cut current line |
| Ctrl-d | Duplicate current line |
| Ctrl-z | Undo |
| Ctrl-y | Redo |
| Alt-UpArrow | Move current line or selected lines up |
| Alt-DownArrow | Move current line or selected lines down |
| Alt-Backspace or Alt-Ctrl-h | Delete word left |
| Ctrl-a | Select all |
| Tab | Indent selected text |
| Shift-Tab | Unindent selected text |
| Key | Description of function |
|---------------------------------------- |------------------------------------------ |
| Ctrl(Alt on Mac)-Shift-RightArrow | Select word right |
| Ctrl(Alt on Mac)-Shift-LeftArrow | Select word left |
| Alt(Ctrl on Mac)-Shift-LeftArrow | Select to start of current line |
| Alt(Ctrl on Mac)-Shift-RightArrow | Select to end of current line |
| Shift-Home | Select to start of current line |
| Shift-End | Select to end of current line |
| Ctrl-Shift-UpArrow or Ctrl-Shift-Home | Select to start of file |
| Ctrl-Shift-DownArrow or Ctrl-Shift-End | Select to end of file |
| Ctrl-x | Cut selected text |
| Ctrl-c | Copy selected text |
| Ctrl-v | Paste |
| Ctrl-k | Cut current line |
| Ctrl-d | Duplicate current line |
| Ctrl-z | Undo |
| Ctrl-y | Redo |
| Alt-UpArrow | Move current line or selected lines up |
| Alt-DownArrow | Move current line or selected lines down |
| Alt-Backspace or Alt-Ctrl-h | Delete word left |
| Ctrl-a | Select all |
| Tab | Indent selected text |
| Shift-Tab | Unindent selected text |
### Macros
+4
View File
@@ -586,6 +586,8 @@ conventions for text editing defaults.
"End": "EndOfLine",
"CtrlHome": "CursorStart",
"CtrlEnd": "CursorEnd",
"CtrlShiftHome": "SelectToStart",
"CtrlShiftEnd": "SelectToEnd",
"PageUp": "CursorPageUp",
"PageDown": "CursorPageDown",
"CtrlPageUp": "PreviousTab|LastTab",
@@ -707,6 +709,8 @@ are given below:
"End": "EndOfLine",
"CtrlHome": "CursorStart",
"CtrlEnd": "CursorEnd",
"CtrlShiftHome": "SelectToStart",
"CtrlShiftEnd": "SelectToEnd",
"Delete": "Delete",
"Ctrl-q": "AbortCommand",
"Ctrl-e": "EndOfLine",