Skip to content

Commit a2cc3e5

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 41776aa commit a2cc3e5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/hotkeys.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
|Reply quoting the current message text|<kbd>></kbd>|
8383
|Reply directly to the sender of the current message|<kbd>R</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

+7-7
Original file line numberDiff line numberDiff line change
@@ -129,28 +129,28 @@ class KeyBinding(TypedDict):
129129
'CYCLE_COMPOSE_FOCUS': {
130130
'keys': ['tab'],
131131
'help_text': 'Cycle through recipient and content boxes',
132-
'key_category': 'msg_compose',
132+
'key_category': 'compose_box',
133133
},
134134
'SEND_MESSAGE': {
135135
'keys': ['ctrl d', 'meta enter'],
136136
'help_text': 'Send a message',
137-
'key_category': 'msg_compose',
137+
'key_category': 'compose_box',
138138
},
139139
'SAVE_AS_DRAFT': {
140140
'keys': ['meta s'],
141141
'help_text': 'Save current message as a draft',
142-
'key_category': 'msg_compose',
142+
'key_category': 'compose_box',
143143
},
144144
'AUTOCOMPLETE': {
145145
'keys': ['ctrl f'],
146146
'help_text': ('Autocomplete @mentions, #stream_names, :emoji:'
147147
' and topics'),
148-
'key_category': 'msg_compose',
148+
'key_category': 'compose_box',
149149
},
150150
'AUTOCOMPLETE_REVERSE': {
151151
'keys': ['ctrl r'],
152152
'help_text': 'Cycle through autocomplete suggestions in reverse',
153-
'key_category': 'msg_compose',
153+
'key_category': 'compose_box',
154154
},
155155
'ADD_REACTION': {
156156
'keys': [':'],
@@ -170,7 +170,7 @@ class KeyBinding(TypedDict):
170170
'NARROW_MESSAGE_RECIPIENT': {
171171
'keys': ['meta .'],
172172
'help_text': 'Narrow to compose box message recipient',
173-
'key_category': 'msg_compose',
173+
'key_category': 'compose_box',
174174
},
175175
'TOGGLE_NARROW': {
176176
'keys': ['z'],
@@ -421,7 +421,7 @@ class KeyBinding(TypedDict):
421421
"stream_list": "Stream list actions",
422422
"new_msg": "Compose: New Message",
423423
"reply": "Compose: Replies",
424-
"msg_compose": "Composing a Message",
424+
"compose_box": "Writing a message",
425425
"editor_navigation": "Editor: Navigation",
426426
"editor_text_manipulation": "Editor: Text Manipulation",
427427
}

0 commit comments

Comments
 (0)