Update app menu to add item for history#2870
Update app menu to add item for history#2870FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
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.
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.
What's the standard shortcut for history in apps on macOS?
There was a problem hiding this comment.
Updated but still need to be tested on windows
There was a problem hiding this comment.
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.
Once a menu item, a shortcut can be customised in macOS, so anything is good with me.
I didn't know that~
5722ddb to
4607d06
Compare
yarn.lock
Outdated
| 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.
I keep getting this on MacOS after running yarn install
| rules: { | ||
| 'space-before-function-paren': 'off', | ||
| 'comma-dangle': ['error', 'never'], | ||
| 'comma-dangle': ['error', 'only-multiline'], |
There was a problem hiding this comment.
I think multiline should allow (but not enforce) last comma
| { role: 'zoomout', accelerator: 'CmdOrCtrl+numsub', visible: false }, | ||
| { type: 'separator' }, | ||
| { role: 'togglefullscreen' } | ||
| { role: 'togglefullscreen' }, |
There was a problem hiding this comment.
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
| 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.
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.
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.
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.
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