Skip to content

Commit dc392d1

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

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

docs/hotkeys.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@
7373
|Toggle topics in a stream|<kbd>t</kbd>|
7474
|Mute/unmute streams|<kbd>m</kbd>|
7575
|Show/hide stream information & modify settings|<kbd>i</kbd>|
76-
|Show/hide stream members (from stream information)|<kbd>m</kbd>|
77-
|Copy stream email to clipboard (from stream information)|<kbd>c</kbd>|
7876

7977
## Begin composing a message
8078
|Command|Key Combination|
@@ -123,3 +121,9 @@
123121
|Delete previous character|<kbd>Ctrl</kbd> + <kbd>h</kbd>|
124122
|Swap with previous character|<kbd>Ctrl</kbd> + <kbd>t</kbd>|
125123

124+
## Stream information (press i to view info of a stream)
125+
|Command|Key Combination|
126+
| :--- | :---: |
127+
|Show/hide stream members|<kbd>m</kbd>|
128+
|Copy stream email to clipboard|<kbd>c</kbd>|
129+

zulipterminal/config/keys.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,16 @@ class KeyBinding(TypedDict):
314314
},
315315
'STREAM_MEMBERS': {
316316
'keys': ['m'],
317-
'help_text': 'Show/hide stream members (from stream information)',
317+
'help_text': 'Show/hide stream members',
318318
'excluded_from_random_tips': True,
319-
'key_category': 'stream_list',
319+
'key_category': 'stream_info',
320320
},
321321
'COPY_STREAM_EMAIL': {
322322
'keys': ['c'],
323323
'help_text':
324-
'Copy stream email to clipboard (from stream information)',
324+
'Copy stream email to clipboard',
325325
'excluded_from_random_tips': True,
326-
'key_category': 'stream_list',
326+
'key_category': 'stream_info',
327327
},
328328
'REDRAW': {
329329
'keys': ['ctrl l'],
@@ -462,6 +462,10 @@ class KeyBinding(TypedDict):
462462
"compose_box": "Writing a message",
463463
"editor_navigation": "Editor: Navigation",
464464
"editor_text_manipulation": "Editor: Text Manipulation",
465+
"stream_info": (
466+
f"Stream information (press {KEY_BINDINGS['STREAM_INFO']['keys'][0]}"
467+
f" to view info of a stream)"
468+
),
465469
}
466470

467471
ZT_TO_URWID_CMD_MAPPING = {

0 commit comments

Comments
 (0)