Skip to content

Commit 7e2290c

Browse files
committed
keys/docs: Improve the help texts of editor related hotkeys.
1 parent f4ef66b commit 7e2290c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/hotkeys.md

Lines changed: 6 additions & 6 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> / <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>|
90+
|Jump to the beginning of the current line|<kbd>Ctrl</kbd> + <kbd>a</kbd> / <kbd>Home</kbd>|
91+
|Jump to the end of the current line|<kbd>Ctrl</kbd> + <kbd>e</kbd> / <kbd>End</kbd>|
92+
|Jump backward to the start of current or previous word|<kbd>Meta</kbd> + <kbd>b</kbd> / <kbd>Shift</kbd> + <kbd>Left</kbd>|
93+
|Jump forward to the start of next 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

@@ -105,6 +105,6 @@
105105
|Cut backwards to the start of the current word|<kbd>Ctrl</kbd> + <kbd>w</kbd> / <kbd>Meta</kbd> + <kbd>Backspace</kbd>|
106106
|Cut the current line|<kbd>Meta</kbd> + <kbd>x</kbd>|
107107
|Paste last cut section|<kbd>Ctrl</kbd> + <kbd>y</kbd>|
108-
|Delete previous character (to left)|<kbd>Ctrl</kbd> + <kbd>h</kbd>|
109-
|Transpose characters|<kbd>Ctrl</kbd> + <kbd>t</kbd>|
108+
|Delete the character behind the cursor|<kbd>Ctrl</kbd> + <kbd>h</kbd>|
109+
|Swap with previous character|<kbd>Ctrl</kbd> + <kbd>t</kbd>|
110110

zulipterminal/config/keys.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,22 +332,22 @@ class KeyBinding(TypedDict):
332332
},
333333
'BEGINNING_OF_LINE': {
334334
'keys': ['ctrl a', 'home'],
335-
'help_text': 'Jump to the beginning of line',
335+
'help_text': 'Jump to the beginning of the current line',
336336
'key_category': 'editor_navigation',
337337
},
338338
'END_OF_LINE': {
339339
'keys': ['ctrl e', 'end'],
340-
'help_text': 'Jump to the end of line',
340+
'help_text': 'Jump to the end of the current line',
341341
'key_category': 'editor_navigation',
342342
},
343343
'ONE_WORD_BACKWARD': {
344344
'keys': ['meta b', 'shift left'],
345-
'help_text': 'Jump backward one word',
345+
'help_text': 'Jump backward to the start of current or previous word',
346346
'key_category': 'editor_navigation',
347347
},
348348
'ONE_WORD_FORWARD': {
349349
'keys': ['meta f', 'shift right'],
350-
'help_text': 'Jump forward one word',
350+
'help_text': 'Jump forward to the start of next word',
351351
'key_category': 'editor_navigation',
352352
},
353353
'PREV_LINE': {
@@ -402,12 +402,12 @@ class KeyBinding(TypedDict):
402402
},
403403
'DELETE_LAST_CHARACTER': {
404404
'keys': ['ctrl h'],
405-
'help_text': 'Delete previous character (to left)',
405+
'help_text': 'Delete the character behind the cursor',
406406
'key_category': 'editor_text_manipulation',
407407
},
408408
'TRANSPOSE_CHARACTERS': {
409409
'keys': ['ctrl t'],
410-
'help_text': 'Transpose characters',
410+
'help_text': 'Swap with previous character',
411411
'key_category': 'editor_text_manipulation',
412412
},
413413
}

0 commit comments

Comments
 (0)