Skip to content

Commit 41776aa

Browse files
committed
keys: Add 2 new help categories for opening compose box.
- Compose: New Message - Compose: Replies Regroup key bindings that were previously categorized under message actions, and in the general category. Hotkeys document regenerated.
1 parent e5e9010 commit 41776aa

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

docs/hotkeys.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
|Show/hide Markdown Help Menu|<kbd>Meta</kbd> + <kbd>m</kbd>|
1010
|Show/hide About Menu|<kbd>Meta</kbd> + <kbd>?</kbd>|
1111
|Go back|<kbd>Esc</kbd>|
12-
|Open draft message saved in this session|<kbd>d</kbd>|
1312
|Redraw screen|<kbd>Ctrl</kbd> + <kbd>l</kbd>|
1413
|Quit|<kbd>Ctrl</kbd> + <kbd>c</kbd>|
1514
|Show/hide user information (from users list)|<kbd>i</kbd>|
@@ -44,13 +43,7 @@
4443
## Message actions
4544
|Command|Key Combination|
4645
| :--- | :---: |
47-
|Reply to the current message|<kbd>r</kbd> / <kbd>Enter</kbd>|
48-
|Reply mentioning the sender of the current message|<kbd>@</kbd>|
49-
|Reply quoting the current message text|<kbd>></kbd>|
50-
|Reply directly to the sender of the current message|<kbd>R</kbd>|
5146
|Edit message's content or topic|<kbd>e</kbd>|
52-
|New message to a stream|<kbd>c</kbd>|
53-
|New message to a person or group of people|<kbd>x</kbd>|
5447
|Show/hide emoji picker for current message|<kbd>:</kbd>|
5548
|Narrow to the stream of the current message|<kbd>s</kbd>|
5649
|Narrow to the topic of the current message|<kbd>S</kbd>|
@@ -74,6 +67,21 @@
7467
|Show/hide stream members (from stream information)|<kbd>m</kbd>|
7568
|Copy stream email to clipboard (from stream information)|<kbd>c</kbd>|
7669

70+
## Compose: New Message
71+
|Command|Key Combination|
72+
| :--- | :---: |
73+
|Open draft message saved in this session|<kbd>d</kbd>|
74+
|New message to a stream|<kbd>c</kbd>|
75+
|New message to a person or group of people|<kbd>x</kbd>|
76+
77+
## Compose: Replies
78+
|Command|Key Combination|
79+
| :--- | :---: |
80+
|Reply to the current message|<kbd>r</kbd> / <kbd>Enter</kbd>|
81+
|Reply mentioning the sender of the current message|<kbd>@</kbd>|
82+
|Reply quoting the current message text|<kbd>></kbd>|
83+
|Reply directly to the sender of the current message|<kbd>R</kbd>|
84+
7785
## Composing a Message
7886
|Command|Key Combination|
7987
| :--- | :---: |

zulipterminal/config/keys.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class KeyBinding(TypedDict):
5454
'OPEN_DRAFT': {
5555
'keys': ['d'],
5656
'help_text': 'Open draft message saved in this session',
57-
'key_category': 'general',
57+
'key_category': 'new_msg',
5858
},
5959
'GO_UP': {
6060
'keys': ['up', 'k'],
@@ -94,22 +94,22 @@ class KeyBinding(TypedDict):
9494
'REPLY_MESSAGE': {
9595
'keys': ['r', 'enter'],
9696
'help_text': 'Reply to the current message',
97-
'key_category': 'msg_actions',
97+
'key_category': 'reply',
9898
},
9999
'MENTION_REPLY': {
100100
'keys': ['@'],
101101
'help_text': 'Reply mentioning the sender of the current message',
102-
'key_category': 'msg_actions',
102+
'key_category': 'reply',
103103
},
104104
'QUOTE_REPLY': {
105105
'keys': ['>'],
106106
'help_text': 'Reply quoting the current message text',
107-
'key_category': 'msg_actions',
107+
'key_category': 'reply',
108108
},
109109
'REPLY_AUTHOR': {
110110
'keys': ['R'],
111111
'help_text': 'Reply directly to the sender of the current message',
112-
'key_category': 'msg_actions',
112+
'key_category': 'reply',
113113
},
114114
'EDIT_MESSAGE': {
115115
'keys': ['e'],
@@ -119,12 +119,12 @@ class KeyBinding(TypedDict):
119119
'STREAM_MESSAGE': {
120120
'keys': ['c'],
121121
'help_text': 'New message to a stream',
122-
'key_category': 'msg_actions',
122+
'key_category': 'new_msg',
123123
},
124124
'PRIVATE_MESSAGE': {
125125
'keys': ['x'],
126126
'help_text': 'New message to a person or group of people',
127-
'key_category': 'msg_actions',
127+
'key_category': 'new_msg',
128128
},
129129
'CYCLE_COMPOSE_FOCUS': {
130130
'keys': ['tab'],
@@ -419,6 +419,8 @@ class KeyBinding(TypedDict):
419419
"searching": "Searching",
420420
"msg_actions": "Message actions",
421421
"stream_list": "Stream list actions",
422+
"new_msg": "Compose: New Message",
423+
"reply": "Compose: Replies",
422424
"msg_compose": "Composing a Message",
423425
"editor_navigation": "Editor: Navigation",
424426
"editor_text_manipulation": "Editor: Text Manipulation",

0 commit comments

Comments
 (0)