Skip to content

Commit aaac094

Browse files
Niloth-pneiljp
authored andcommitted
keys: Re-order the 'narrowing' key bindings.
To make the 'z' hotkey be listed immediately after the related 's' and 'S' hotkeys in the help menu.
1 parent 0376a73 commit aaac094

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/hotkeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
| :--- | :---: |
3333
|Narrow to the stream of the current message|<kbd>s</kbd>|
3434
|Narrow to the topic of the current message|<kbd>S</kbd>|
35-
|Narrow to compose box message recipient|<kbd>Meta</kbd> + <kbd>.</kbd>|
3635
|Narrow to a topic/direct-chat, or stream/all-direct-messages|<kbd>z</kbd>|
36+
|Narrow to compose box message recipient|<kbd>Meta</kbd> + <kbd>.</kbd>|
3737
|Narrow to all messages|<kbd>a</kbd> / <kbd>Esc</kbd>|
3838
|Narrow to all direct messages|<kbd>P</kbd>|
3939
|Narrow to all starred messages|<kbd>f</kbd>|

zulipterminal/config/keys.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ class KeyBinding(TypedDict):
177177
'help_text': 'Narrow to the topic of the current message',
178178
'key_category': 'narrowing',
179179
},
180+
'TOGGLE_NARROW': {
181+
'keys': ['z'],
182+
'help_text':
183+
'Narrow to a topic/direct-chat, or stream/all-direct-messages',
184+
'key_category': 'narrowing',
185+
},
180186
'NARROW_MESSAGE_RECIPIENT': {
181187
'keys': ['meta .'],
182188
'help_text': 'Narrow to compose box message recipient',
@@ -187,12 +193,6 @@ class KeyBinding(TypedDict):
187193
'help_text': 'Exit message compose box',
188194
'key_category': 'compose_box',
189195
},
190-
'TOGGLE_NARROW': {
191-
'keys': ['z'],
192-
'help_text':
193-
'Narrow to a topic/direct-chat, or stream/all-direct-messages',
194-
'key_category': 'narrowing',
195-
},
196196
'REACTION_AGREEMENT': {
197197
'keys': ['='],
198198
'help_text': 'Toggle first emoji reaction on selected message',

0 commit comments

Comments
 (0)