Skip to content

Commit 338e6b5

Browse files
Niloth-pneiljp
authored andcommitted
keys: Rename the help category of message compose box actions.
The category name in the code: 'msg_compose' -> 'compose_box' The user visible name: 'Composing a message' -> 'Writing a message' This is to emphasize its difference from the other newly created category for actions that open the compose box, to both users and developers. Hotkeys document regenerated.
1 parent 8c6cfd2 commit 338e6b5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/hotkeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
|New message to a stream|<kbd>c</kbd>|
8383
|New message to a person or group of people|<kbd>x</kbd>|
8484

85-
## Composing a Message
85+
## Writing a message
8686
|Command|Key Combination|
8787
| :--- | :---: |
8888
|Cycle through recipient and content boxes|<kbd>Tab</kbd>|

zulipterminal/config/keys.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,28 +139,28 @@ class KeyBinding(TypedDict):
139139
'CYCLE_COMPOSE_FOCUS': {
140140
'keys': ['tab'],
141141
'help_text': 'Cycle through recipient and content boxes',
142-
'key_category': 'msg_compose',
142+
'key_category': 'compose_box',
143143
},
144144
'SEND_MESSAGE': {
145145
'keys': ['ctrl d', 'meta enter'],
146146
'help_text': 'Send a message',
147-
'key_category': 'msg_compose',
147+
'key_category': 'compose_box',
148148
},
149149
'SAVE_AS_DRAFT': {
150150
'keys': ['meta s'],
151151
'help_text': 'Save current message as a draft',
152-
'key_category': 'msg_compose',
152+
'key_category': 'compose_box',
153153
},
154154
'AUTOCOMPLETE': {
155155
'keys': ['ctrl f'],
156156
'help_text': ('Autocomplete @mentions, #stream_names, :emoji:'
157157
' and topics'),
158-
'key_category': 'msg_compose',
158+
'key_category': 'compose_box',
159159
},
160160
'AUTOCOMPLETE_REVERSE': {
161161
'keys': ['ctrl r'],
162162
'help_text': 'Cycle through autocomplete suggestions in reverse',
163-
'key_category': 'msg_compose',
163+
'key_category': 'compose_box',
164164
},
165165
'ADD_REACTION': {
166166
'keys': [':'],
@@ -180,12 +180,12 @@ class KeyBinding(TypedDict):
180180
'NARROW_MESSAGE_RECIPIENT': {
181181
'keys': ['meta .'],
182182
'help_text': 'Narrow to compose box message recipient',
183-
'key_category': 'msg_compose',
183+
'key_category': 'compose_box',
184184
},
185185
'EXIT_COMPOSE': {
186186
'keys': ['esc'],
187187
'help_text': 'Exit message compose box',
188-
'key_category': 'msg_compose',
188+
'key_category': 'compose_box',
189189
},
190190
'TOGGLE_NARROW': {
191191
'keys': ['z'],
@@ -426,7 +426,7 @@ class KeyBinding(TypedDict):
426426
# and to differentiate from other hotkeys using 'enter'.
427427
'keys': ['enter'],
428428
'help_text': 'Insert new line',
429-
'key_category': 'msg_compose',
429+
'key_category': 'compose_box',
430430
},
431431
'FULL_RENDERED_MESSAGE': {
432432
'keys': ['f'],
@@ -453,7 +453,7 @@ class KeyBinding(TypedDict):
453453
"msg_actions": "Message actions",
454454
"stream_list": "Stream list actions",
455455
"open_compose": "Begin composing a message",
456-
"msg_compose": "Composing a Message",
456+
"compose_box": "Writing a message",
457457
"editor_navigation": "Editor: Navigation",
458458
"editor_text_manipulation": "Editor: Text Manipulation",
459459
}

0 commit comments

Comments
 (0)