Skip to content

Commit 5b275e6

Browse files
committed
keys/docs: Add missing key combinations to readline commands.
1 parent 357bb54 commit 5b275e6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/hotkeys.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@
8787
## Editor: Navigation
8888
|Command|Key Combination|
8989
| :--- | :---: |
90-
|Jump to the beginning of line|<kbd>Ctrl</kbd> + <kbd>a</kbd>|
91-
|Jump to the end of line|<kbd>Ctrl</kbd> + <kbd>e</kbd>|
92-
|Jump backward one word|<kbd>Meta</kbd> + <kbd>b</kbd>|
93-
|Jump forward one word|<kbd>Meta</kbd> + <kbd>f</kbd>|
90+
|Jump to the beginning of line|<kbd>Ctrl</kbd> + <kbd>a</kbd> / <kbd>Home</kbd>|
91+
|Jump to the end of line|<kbd>Ctrl</kbd> + <kbd>e</kbd> / <kbd>End</kbd>|
92+
|Jump backward one word|<kbd>Meta</kbd> + <kbd>b</kbd> / <kbd>Shift</kbd> + <kbd>Left</kbd>|
93+
|Jump forward one word|<kbd>Meta</kbd> + <kbd>f</kbd> / <kbd>Shift</kbd> + <kbd>Right</kbd>|
9494
|Jump to the previous line|<kbd>Up</kbd> / <kbd>Ctrl</kbd> + <kbd>p</kbd>|
9595
|Jump to the next line|<kbd>Down</kbd> / <kbd>Ctrl</kbd> + <kbd>n</kbd>|
9696

@@ -102,7 +102,7 @@
102102
|Cut forwards to the end of the line|<kbd>Ctrl</kbd> + <kbd>k</kbd>|
103103
|Cut backwards to the start of the line|<kbd>Ctrl</kbd> + <kbd>u</kbd>|
104104
|Cut forwards to the end of the current word|<kbd>Meta</kbd> + <kbd>d</kbd>|
105-
|Cut backwards to the start of the current word|<kbd>Ctrl</kbd> + <kbd>w</kbd>|
105+
|Cut backwards to the start of the current word|<kbd>Ctrl</kbd> + <kbd>w</kbd> / <kbd>Meta</kbd> + <kbd>Backspace</kbd>|
106106
|Paste last cut section|<kbd>Ctrl</kbd> + <kbd>y</kbd>|
107107
|Delete previous character (to left)|<kbd>Ctrl</kbd> + <kbd>h</kbd>|
108108
|Transpose characters|<kbd>Ctrl</kbd> + <kbd>t</kbd>|

zulipterminal/config/keys.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,22 +325,22 @@ class KeyBinding(TypedDict):
325325
'key_category': 'general',
326326
},
327327
'BEGINNING_OF_LINE' + READLINE_SUFFIX: {
328-
'keys': ['ctrl a'],
328+
'keys': ['ctrl a', 'home'],
329329
'help_text': 'Jump to the beginning of line',
330330
'key_category': 'editor_navigation',
331331
},
332332
'END_OF_LINE' + READLINE_SUFFIX: {
333-
'keys': ['ctrl e'],
333+
'keys': ['ctrl e', 'end'],
334334
'help_text': 'Jump to the end of line',
335335
'key_category': 'editor_navigation',
336336
},
337337
'ONE_WORD_BACKWARD' + READLINE_SUFFIX: {
338-
'keys': ['meta b'],
338+
'keys': ['meta b', 'shift left'],
339339
'help_text': 'Jump backward one word',
340340
'key_category': 'editor_navigation',
341341
},
342342
'ONE_WORD_FORWARD' + READLINE_SUFFIX: {
343-
'keys': ['meta f'],
343+
'keys': ['meta f', 'shift right'],
344344
'help_text': 'Jump forward one word',
345345
'key_category': 'editor_navigation',
346346
},
@@ -380,7 +380,7 @@ class KeyBinding(TypedDict):
380380
'key_category': 'editor_text_manipulation',
381381
},
382382
'CUT_TO_START_OF_WORD' + READLINE_SUFFIX: {
383-
'keys': ['ctrl w'],
383+
'keys': ['ctrl w', 'meta backspace'],
384384
'help_text': 'Cut backwards to the start of the current word',
385385
'key_category': 'editor_text_manipulation',
386386
},

0 commit comments

Comments
 (0)