-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update app menu to add item for history #2870
Update app menu to add item for history #2870
Conversation
Pretty sure you didn't need to update the translation keys, as the menu items don't get translated anyway at the moment.
|
Too complicated to have different keywords, I will just update it to Ctrl/Cmd + H Update 1: Crap Cmd+H on MacOS = hide window zzzz |
cc8fdfd
to
5722ddb
Compare
src/main/index.js
Outdated
{ type: 'separator' }, | ||
{ | ||
label: 'History', | ||
accelerator: 'CmdOrCtrl+U', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wouldn't be too hard to have a separate shortcut on macOS and have a meaningful one on Windows and Linux
accelerator: 'CmdOrCtrl+U', | |
accelerator: process.platform === 'darwin' ? 'Cmd+Y' : 'Ctrl+H', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cmd+Z
? Cmd+Y
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the standard shortcut for history in apps on macOS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated but still need to be tested on windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for implementing shortcuts! Once a menu item, a shortcut can be customised in macOS, so anything is good with me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once a menu item, a shortcut can be customised in macOS, so anything is good with me.
I didn't know that~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5722ddb
to
4607d06
Compare
yarn.lock
Outdated
@@ -7133,11 +7133,6 @@ sax@^1.1.3, sax@^1.2.4: | |||
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" | |||
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== | |||
|
|||
sax@~0.6.0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I keep getting this on MacOS after running yarn install
@@ -33,7 +33,7 @@ module.exports = { | |||
|
|||
rules: { | |||
'space-before-function-paren': 'off', | |||
'comma-dangle': ['error', 'never'], | |||
'comma-dangle': ['error', 'only-multiline'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think multiline should allow (but not enforce) last comma
@@ -997,7 +997,23 @@ function runApp() { | |||
{ role: 'zoomout' }, | |||
{ role: 'zoomout', accelerator: 'CmdOrCtrl+numsub', visible: false }, | |||
{ type: 'separator' }, | |||
{ role: 'togglefullscreen' } | |||
{ role: 'togglefullscreen' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allowing last comma on multiline makes duplicating last code and modifying it much easier, also no more diff on N-1th line
static/locales/en-US.yaml
Outdated
@@ -119,7 +120,7 @@ User Playlists: | |||
it listed here | |||
Empty Search Message: There are no videos in this playlist that matches your search | |||
Search bar placeholder: Search in Playlist | |||
History: | |||
History Page: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why rename this?
$t("History.History")
would have gotten the history value before the update.
Also all locales that already have the History translated will need to update to "History Page" in order to not use the english translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the comment # Webkit Menu Bar
those entries are for Webkit Menu Bar
and seems that they can only be placed on top level
I have no idea if that's true or not
Let me know?
The commit for that comment and many other entries are from a commit 2 years ago
Update 1: Found a tutorial about menu I18n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment the menu doesn't get translated at all, so the translation change is not necessary yet, until someone decides to setup translations for the menu.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I will revert the change
Confusing!
4607d06
to
110c642
Compare
translation namespace changes reverted |
Update app menu to add item for history
Pull Request Type
Related issue
#1869 Partially
Description
Update app menu to add item for history
with keyboard shortcut
Screenshots
Testing
U
) to navigate to history viewDesktop
Additional context
The namespace for translation entries used in history view needs to be updated to avoid key conflict