Skip to content

Commit 7116761

Browse files
Niloth-pneiljp
authored andcommitted
keys: Add new help category for user list actions.
To remove the suffix "(from user list)" from the help texts of user list hotkeys in the help menu. Added a new command entry `NARROW_TO_USER_PM` to the user list actions. Hotkeys document regenerated.
1 parent 3f22939 commit 7116761

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

docs/hotkeys.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
|Copy information from About Menu to clipboard|<kbd>c</kbd>|
1212
|Redraw screen|<kbd>Ctrl</kbd> + <kbd>l</kbd>|
1313
|Quit|<kbd>Ctrl</kbd> + <kbd>c</kbd>|
14-
|Show/hide user information (from users list)|<kbd>i</kbd>|
1514
|New footer hotkey hint|<kbd>Tab</kbd>|
1615

1716
## Navigation
@@ -70,6 +69,12 @@
7069
|Mute/unmute streams|<kbd>m</kbd>|
7170
|Show/hide stream information & modify settings|<kbd>i</kbd>|
7271

72+
## User list actions
73+
|Command|Key Combination|
74+
| :--- | :---: |
75+
|Show/hide user information|<kbd>i</kbd>|
76+
|Narrow to direct messages with user|<kbd>Enter</kbd>|
77+
7378
## Begin composing a message
7479
|Command|Key Combination|
7580
| :--- | :---: |

zulipterminal/config/keys.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,16 @@ class KeyBinding(TypedDict):
337337
},
338338
'USER_INFO': {
339339
'keys': ['i'],
340-
'help_text': 'Show/hide user information (from users list)',
341-
'key_category': 'general',
340+
'help_text': 'Show/hide user information',
341+
'key_category': 'user_list',
342+
},
343+
'NARROW_TO_USER_PM': {
344+
# Added to clarify functionality of button activation,
345+
# as opposed to opening user profile or other effects.
346+
# Implementation uses ACTIVATE_BUTTON command.
347+
'keys': ['enter'],
348+
'help_text': 'Narrow to direct messages with user',
349+
'key_category': 'user_list',
342350
},
343351
'BEGINNING_OF_LINE': {
344352
'keys': ['ctrl a', 'home'],
@@ -458,6 +466,7 @@ class KeyBinding(TypedDict):
458466
"searching": "Searching",
459467
"msg_actions": "Message actions",
460468
"stream_list": "Stream list actions",
469+
"user_list": "User list actions",
461470
"open_compose": "Begin composing a message",
462471
"compose_box": "Writing a message",
463472
"editor_navigation": "Editor: Navigation",

0 commit comments

Comments
 (0)