Skip to content

Commit 0a1fe27

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 28d5f6a commit 0a1fe27

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

docs/hotkeys.md

Lines changed: 15 additions & 7 deletions
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
|Copy information from About Menu to clipboard|<kbd>c</kbd>|
1413
|Redraw screen|<kbd>Ctrl</kbd> + <kbd>l</kbd>|
1514
|Quit|<kbd>Ctrl</kbd> + <kbd>c</kbd>|
@@ -46,13 +45,7 @@
4645
## Message actions
4746
|Command|Key Combination|
4847
| :--- | :---: |
49-
|Reply to the current message|<kbd>r</kbd> / <kbd>Enter</kbd>|
50-
|Reply mentioning the sender of the current message|<kbd>@</kbd>|
51-
|Reply quoting the current message text|<kbd>></kbd>|
52-
|Reply directly to the sender of the current message|<kbd>R</kbd>|
5348
|Edit message's content or topic|<kbd>e</kbd>|
54-
|New message to a stream|<kbd>c</kbd>|
55-
|New message to a person or group of people|<kbd>x</kbd>|
5649
|Show/hide emoji picker for current message|<kbd>:</kbd>|
5750
|Narrow to the stream of the current message|<kbd>s</kbd>|
5851
|Narrow to the topic of the current message|<kbd>S</kbd>|
@@ -76,6 +69,21 @@
7669
|Show/hide stream members (from stream information)|<kbd>m</kbd>|
7770
|Copy stream email to clipboard (from stream information)|<kbd>c</kbd>|
7871

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

zulipterminal/config/keys.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class KeyBinding(TypedDict):
5555
'OPEN_DRAFT': {
5656
'keys': ['d'],
5757
'help_text': 'Open draft message saved in this session',
58-
'key_category': 'general',
58+
'key_category': 'new_msg',
5959
},
6060
'COPY_ABOUT_INFO': {
6161
'keys': ['c'],
@@ -105,22 +105,22 @@ class KeyBinding(TypedDict):
105105
'REPLY_MESSAGE': {
106106
'keys': ['r', 'enter'],
107107
'help_text': 'Reply to the current message',
108-
'key_category': 'msg_actions',
108+
'key_category': 'reply',
109109
},
110110
'MENTION_REPLY': {
111111
'keys': ['@'],
112112
'help_text': 'Reply mentioning the sender of the current message',
113-
'key_category': 'msg_actions',
113+
'key_category': 'reply',
114114
},
115115
'QUOTE_REPLY': {
116116
'keys': ['>'],
117117
'help_text': 'Reply quoting the current message text',
118-
'key_category': 'msg_actions',
118+
'key_category': 'reply',
119119
},
120120
'REPLY_AUTHOR': {
121121
'keys': ['R'],
122122
'help_text': 'Reply directly to the sender of the current message',
123-
'key_category': 'msg_actions',
123+
'key_category': 'reply',
124124
},
125125
'EDIT_MESSAGE': {
126126
'keys': ['e'],
@@ -130,12 +130,12 @@ class KeyBinding(TypedDict):
130130
'STREAM_MESSAGE': {
131131
'keys': ['c'],
132132
'help_text': 'New message to a stream',
133-
'key_category': 'msg_actions',
133+
'key_category': 'new_msg',
134134
},
135135
'PRIVATE_MESSAGE': {
136136
'keys': ['x'],
137137
'help_text': 'New message to a person or group of people',
138-
'key_category': 'msg_actions',
138+
'key_category': 'new_msg',
139139
},
140140
'CYCLE_COMPOSE_FOCUS': {
141141
'keys': ['tab'],
@@ -438,6 +438,8 @@ class KeyBinding(TypedDict):
438438
"searching": "Searching",
439439
"msg_actions": "Message actions",
440440
"stream_list": "Stream list actions",
441+
"new_msg": "Compose: New Message",
442+
"reply": "Compose: Replies",
441443
"msg_compose": "Composing a Message",
442444
"editor_navigation": "Editor: Navigation",
443445
"editor_text_manipulation": "Editor: Text Manipulation",

0 commit comments

Comments
 (0)