Skip to content

Commit

Permalink
keys: Add TOPIC_INFO shortcut using 'i' key to show/hide topic settings.
Browse files Browse the repository at this point in the history
Co-authored-by: Shivam Deotarse <[email protected]>
  • Loading branch information
rsashank and srdeotarse committed Sep 30, 2024
1 parent 7fdf686 commit 1c85d9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/hotkeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
|Show/hide user information|<kbd>i</kbd>|
|Narrow to direct messages with user|<kbd>Enter</kbd>|

## Topic list actions
|Command|Key Combination|
| :--- | :---: |
|Show/hide topic information & (un)resolve topic|<kbd>i</kbd>|

## Begin composing a message
|Command|Key Combination|
| :--- | :---: |
Expand Down
6 changes: 6 additions & 0 deletions zulipterminal/config/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ class KeyBinding(TypedDict):
'help_text': 'Show/hide stream information & modify settings',
'key_category': 'stream_list',
},
'TOPIC_INFO': {
'keys': ['i'],
'help_text': 'Show/hide topic information & (un)resolve topic',
'key_category': 'topic_list',
},
'STREAM_MEMBERS': {
'keys': ['m'],
'help_text': 'Show/hide stream members',
Expand Down Expand Up @@ -467,6 +472,7 @@ class KeyBinding(TypedDict):
"msg_actions": "Message actions",
"stream_list": "Stream list actions",
"user_list": "User list actions",
"topic_list": "Topic list actions",
"open_compose": "Begin composing a message",
"compose_box": "Writing a message",
"editor_navigation": "Editor: Navigation",
Expand Down

0 comments on commit 1c85d9d

Please sign in to comment.