Skip to content

Commit

Permalink
hotkeys/keys: Add VIEW_IN_BROWSER for viewing a message in the browser.
Browse files Browse the repository at this point in the history
Add hotkey 'v' in keys.py and hotkeys.md for viewing a message in the
web browser. This hotkey will be enabled only from MessageInfo view to
avoid any unintended triggers from the main view.

Generated hotkeys.

Co-authored-by: Puneeth Chaganti <[email protected]>
Co-authored-by: Preet Mishra <[email protected]>
  • Loading branch information
2 people authored and zee-bit committed Jun 10, 2021
1 parent 8c09464 commit c4072a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/hotkeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
|Add/remove star status of the current message|<kbd>ctrl</kbd> + <kbd>s</kbd> / <kbd>*</kbd>|
|Show/hide message information|<kbd>i</kbd>|
|Show/hide edit history (from message information)|<kbd>e</kbd>|
|View current message in browser (from message information)|<kbd>v</kbd>|

## Stream list actions
|Command|Key Combination|
Expand Down
7 changes: 7 additions & 0 deletions zulipterminal/config/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ class KeyBinding(TypedDict, total=False):
'excluded_from_random_tips': True,
'key_category': 'msg_actions',
}),
('VIEW_IN_BROWSER', {
'keys': ['v'],
'help_text':
'View current message in browser (from message information)',
'excluded_from_random_tips': True,
'key_category': 'msg_actions',
}),
('STREAM_DESC', {
'keys': ['i'],
'help_text': 'Show/hide stream information & modify settings',
Expand Down

0 comments on commit c4072a7

Please sign in to comment.