Skip to content

Commit b8e2a84

Browse files
committed
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 9f2c0da commit b8e2a84

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/lint-hotkeys

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SCRIPT_NAME = PurePath(__file__).name
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(fix: bool) -> None:

zulipterminal/config/keys.py

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

0 commit comments

Comments
 (0)