Skip to content

Commit 3f22939

Browse files
Niloth-pneiljp
authored andcommitted
keys: Add new help category for message information popup.
To remove the suffix "(from message information)" from the help texts of message information hotkeys in the help menu. Hotkeys document regenerated.
1 parent dc392d1 commit 3f22939

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

docs/hotkeys.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262
|Toggle star status of the current message|<kbd>Ctrl</kbd> + <kbd>s</kbd> / <kbd>*</kbd>|
6363
|Show/hide message information|<kbd>i</kbd>|
6464
|Show/hide message sender information|<kbd>u</kbd>|
65-
|Show/hide edit history (from message information)|<kbd>e</kbd>|
66-
|View current message in browser (from message information)|<kbd>v</kbd>|
67-
|Show/hide full rendered message (from message information)|<kbd>f</kbd>|
68-
|Show/hide full raw message (from message information)|<kbd>r</kbd>|
6965

7066
## Stream list actions
7167
|Command|Key Combination|
@@ -127,3 +123,11 @@
127123
|Show/hide stream members|<kbd>m</kbd>|
128124
|Copy stream email to clipboard|<kbd>c</kbd>|
129125

126+
## Message information (press i to view info of a message)
127+
|Command|Key Combination|
128+
| :--- | :---: |
129+
|Show/hide edit history|<kbd>e</kbd>|
130+
|View current message in browser|<kbd>v</kbd>|
131+
|Show/hide full rendered message|<kbd>f</kbd>|
132+
|Show/hide full raw message|<kbd>r</kbd>|
133+

zulipterminal/config/keys.py

+12-8
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,16 @@ class KeyBinding(TypedDict):
296296
},
297297
'EDIT_HISTORY': {
298298
'keys': ['e'],
299-
'help_text': 'Show/hide edit history (from message information)',
299+
'help_text': 'Show/hide edit history',
300300
'excluded_from_random_tips': True,
301-
'key_category': 'msg_actions',
301+
'key_category': 'msg_info',
302302
},
303303
'VIEW_IN_BROWSER': {
304304
'keys': ['v'],
305305
'help_text':
306-
'View current message in browser (from message information)',
306+
'View current message in browser',
307307
'excluded_from_random_tips': True,
308-
'key_category': 'msg_actions',
308+
'key_category': 'msg_info',
309309
},
310310
'STREAM_INFO': {
311311
'keys': ['i'],
@@ -435,13 +435,13 @@ class KeyBinding(TypedDict):
435435
},
436436
'FULL_RENDERED_MESSAGE': {
437437
'keys': ['f'],
438-
'help_text': 'Show/hide full rendered message (from message information)',
439-
'key_category': 'msg_actions',
438+
'help_text': 'Show/hide full rendered message',
439+
'key_category': 'msg_info',
440440
},
441441
'FULL_RAW_MESSAGE': {
442442
'keys': ['r'],
443-
'help_text': 'Show/hide full raw message (from message information)',
444-
'key_category': 'msg_actions',
443+
'help_text': 'Show/hide full raw message',
444+
'key_category': 'msg_info',
445445
},
446446
'NEW_HINT': {
447447
'keys': ['tab'],
@@ -466,6 +466,10 @@ class KeyBinding(TypedDict):
466466
f"Stream information (press {KEY_BINDINGS['STREAM_INFO']['keys'][0]}"
467467
f" to view info of a stream)"
468468
),
469+
"msg_info": (
470+
f"Message information (press {KEY_BINDINGS['MSG_INFO']['keys'][0]}"
471+
f" to view info of a message)"
472+
),
469473
}
470474

471475
ZT_TO_URWID_CMD_MAPPING = {

0 commit comments

Comments
 (0)