Skip to content

Commit dd94301

Browse files
committed
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 2 newly created categories using the title prefix 'Compose', to both users and developers. Hotkeys document regenerated.
1 parent 0a1fe27 commit dd94301

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/hotkeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
|Reply quoting the current message text|<kbd>></kbd>|
8585
|Reply directly to the sender of the current message|<kbd>R</kbd>|
8686

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

zulipterminal/config/keys.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,28 +140,28 @@ class KeyBinding(TypedDict):
140140
'CYCLE_COMPOSE_FOCUS': {
141141
'keys': ['tab'],
142142
'help_text': 'Cycle through recipient and content boxes',
143-
'key_category': 'msg_compose',
143+
'key_category': 'compose_box',
144144
},
145145
'SEND_MESSAGE': {
146146
'keys': ['ctrl d', 'meta enter'],
147147
'help_text': 'Send a message',
148-
'key_category': 'msg_compose',
148+
'key_category': 'compose_box',
149149
},
150150
'SAVE_AS_DRAFT': {
151151
'keys': ['meta s'],
152152
'help_text': 'Save current message as a draft',
153-
'key_category': 'msg_compose',
153+
'key_category': 'compose_box',
154154
},
155155
'AUTOCOMPLETE': {
156156
'keys': ['ctrl f'],
157157
'help_text': ('Autocomplete @mentions, #stream_names, :emoji:'
158158
' and topics'),
159-
'key_category': 'msg_compose',
159+
'key_category': 'compose_box',
160160
},
161161
'AUTOCOMPLETE_REVERSE': {
162162
'keys': ['ctrl r'],
163163
'help_text': 'Cycle through autocomplete suggestions in reverse',
164-
'key_category': 'msg_compose',
164+
'key_category': 'compose_box',
165165
},
166166
'ADD_REACTION': {
167167
'keys': [':'],
@@ -181,7 +181,7 @@ class KeyBinding(TypedDict):
181181
'NARROW_MESSAGE_RECIPIENT': {
182182
'keys': ['meta .'],
183183
'help_text': 'Narrow to compose box message recipient',
184-
'key_category': 'msg_compose',
184+
'key_category': 'compose_box',
185185
},
186186
'TOGGLE_NARROW': {
187187
'keys': ['z'],
@@ -417,7 +417,7 @@ class KeyBinding(TypedDict):
417417
# and to differentiate from other hotkeys using 'enter'.
418418
'keys': ['enter'],
419419
'help_text': 'Insert new line',
420-
'key_category': 'msg_compose',
420+
'key_category': 'compose_box',
421421
},
422422
'FULL_RENDERED_MESSAGE': {
423423
'keys': ['f'],
@@ -440,7 +440,7 @@ class KeyBinding(TypedDict):
440440
"stream_list": "Stream list actions",
441441
"new_msg": "Compose: New Message",
442442
"reply": "Compose: Replies",
443-
"msg_compose": "Composing a Message",
443+
"compose_box": "Writing a message",
444444
"editor_navigation": "Editor: Navigation",
445445
"editor_text_manipulation": "Editor: Text Manipulation",
446446
}

0 commit comments

Comments
 (0)