-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
Ability to change keyboard shortcuts via config.json #600
Conversation
…ks via config.json
Codecov Report
@@ Coverage Diff @@
## redesign #600 +/- ##
============================================
+ Coverage 52.14% 52.38% +0.23%
============================================
Files 16 15 -1
Lines 861 859 -2
============================================
+ Hits 449 450 +1
+ Misses 412 409 -3
Continue to review full report at Codecov.
|
@balazsnasz I've made some changes to your code:
I think I can merge if it looks good to you. |
@hovancik I checked it, and it seems fine. You can merge it. |
Now I am thinking, maybe I should just have Not sure if I'll ever need them separated, and even then it's easy to split by |
Probably we won't ever need them separately. But when you think about creating the GUI for this feature, it's a little easier to update the separate setting values than updating them together. I thought I would build the GUI like this: Setting (e.g. saving) Dropdowns is already implemented in the Preferences & Contributor Preferences windows, so it would easy to add such interface elements. Not that big issue though, so if you think we should have only one config item, then it's fine. |
I've check for example Atom, and they have no UI to change shortcuts, only ability to edit config file. I went with more simple solution over premature optimization. There will need to be research about how shortcuts are managed in UI elsewhere, if there is need for it. |
Added ability to change the keyboard shortcuts for Skip/Postpone breaks via config.json
Issue: closes #594
closes #497
Requirements
node
version specified inpackage.json
was used (ie using nvm).npm install --no-save
).npm run lint
reports no offenses.npm run test
is error-free.Description of the Change
I added the ability to change the keyboard shortcuts for Skip/Postpone breaks via config.json.
The default is still Cmd/Ctrl + X, but you can change to Alt, Shift, Cmd/Ctrl, and any a-z A-Z 0-9 keyboard shortcuts.
GUI is coming soon in a different PR.
Be careful when you accept this PR because it will have a conflict with the Hardcore Mode PR (#597 & #599). I changed the on('progress') parts for both of those - I added parameters to the function, so be careful to keep the order in all of the occurrences.
Verification Process
Other information