Skip to content

Commit ec01605

Browse files
srdeotarseneiljp
authored andcommitted
keys: Add TOPIC_INFO shortcut using 'i' key to show/hide topic settings.
Hotkeys updated and "i" shortcut key added to KEYS_TO_EXCLUDE in generate_hotkeys.py file.
1 parent 93f4c69 commit ec01605

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docs/hotkeys.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
|Redraw screen|<kbd>ctrl</kbd> + <kbd>l</kbd>|
1414
|Quit|<kbd>ctrl</kbd> + <kbd>c</kbd>|
1515
|View user information (From Users list)|<kbd>i</kbd>|
16+
|Show/hide topic information & modify settings|<kbd>i</kbd>|
1617

1718
## Navigation
1819
|Command|Key Combination|

tools/generate_hotkeys.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
HELP_TEXT_STYLE = re.compile(r"^[a-zA-Z /()',&@#:_-]*$")
2020

2121
# Exclude keys from duplicate keys checking
22-
KEYS_TO_EXCLUDE = ["q", "e", "m", "r"]
22+
KEYS_TO_EXCLUDE = ["q", "e", "m", "r", "i"]
2323

2424

2525
def main(check_only: bool) -> None:

zulipterminal/config/keys.py

+5
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ class KeyBinding(TypedDict):
311311
'help_text': 'View user information (From Users list)',
312312
'key_category': 'general',
313313
}),
314+
('TOPIC_INFO', {
315+
'keys': ['i'],
316+
'help_text': 'Show/hide topic information & modify settings',
317+
'key_category': 'general',
318+
}),
314319
('BEGINNING_OF_LINE', {
315320
'keys': ['ctrl a'],
316321
'help_text': 'Jump to the beginning of line',

0 commit comments

Comments
 (0)