Skip to content
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

Allow customising shortcuts for activating next/previous service, see #53 #1920

Merged

Conversation

insidewhy
Copy link
Contributor

@insidewhy insidewhy commented Oct 10, 2024

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

Allow customising certain shortcuts, for now just "activate next service" and "activate previous service".

Also changed default service switch shortcuts from Cmd+Tab/Cmd+Shift+Tab to Ctrl+Tab/Ctrl+Shift+Tab as the former key bindings are already bound by the OS and don't work, see #1920 (comment)

Motivation and Context

Ctrl+tab and ctrl+shift+tab are not so ergonomic and this is an action that I use very frequently. This has been requested. Many people complained about these specific keyboard shortcuts in #53 and personally I prefer to use ctrl+, and ctrl+. for this.

Screenshots

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

Allow customising the keyboard shortcuts used to activate the next and previous services.

@insidewhy insidewhy changed the title Allow customising hotkeys, fixes #53 Allow customising shortcuts for activating next/previous service, see #53 Oct 10, 2024
@insidewhy insidewhy force-pushed the feature/allow-customising-hotkeys branch 2 times, most recently from 09544ca to d0e291f Compare October 10, 2024 13:32
@vraravam vraravam requested a review from a team October 10, 2024 13:48
@vraravam vraravam force-pushed the feature/allow-customising-hotkeys branch from d0e291f to d513613 Compare October 11, 2024 08:28
@vraravam
Copy link
Contributor

@insidewhy - thanks for submitting the PR. Could you please also attach screenshots of the preference pane, and maybe a small video on how this feature works?

@insidewhy
Copy link
Contributor Author

@vraravam I can capture a video of interacting with the preference dialogues but the changes to the keybindings can't be captured with a screen video unless I also video me using my computer keyboard

@vraravam
Copy link
Contributor

vraravam commented Oct 11, 2024

@vraravam I can capture a video of interacting with the preference dialogues but the changes to the keybindings can't be captured with a screen video unless I also video me using my computer keyboard

np - I was able to test this functionality out in my laptop. For future reference, you can use an app like keycastr to capture key bindings and mouse clicks to demonstrate them

1 suggestion: for macos, the Cmd+tab is used to switch between running applications, and so I would suggest that you change the keybinding to be Ctrl+tab and Ctrl+Shift+tab for macos as well.

@insidewhy
Copy link
Contributor Author

@vraravam thanks for the suggestions. The default key bindings were taken from the current key bindings used by the app, so I didn't want to change them as part of this PR or it would impact the existing functionality of the app.

I suppose this collision between Mac system keybindings and the app has been an issue all this while. If you want to fix it along with this PR I'm happy to do so.

@vraravam
Copy link
Contributor

@insidewhy - i noticed (after I posted the above comment), that I used to use Option+Cmd+<left/right arrow> for moving in forward/reverse direction of services. So, yes, i agree that this was a "clash" already pre-existing in ferdium.

That being said, yes, if you can please update the PR to fix this clash, let's have that bug fixed! Thanks!

Copy link
Contributor

@vraravam vraravam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change requested as per prev comment. Also, please resolve conflicts by rebasing (not merging) from the develop branch

@insidewhy insidewhy force-pushed the feature/allow-customising-hotkeys branch from d513613 to 8a5535e Compare October 12, 2024 05:13
@insidewhy
Copy link
Contributor Author

@vraravam BTW I also noticed that changing the shortcuts does not require a restart, so I can remove that message.

@insidewhy insidewhy force-pushed the feature/allow-customising-hotkeys branch 2 times, most recently from 1b77eb9 to 73961a2 Compare October 12, 2024 05:30
@insidewhy
Copy link
Contributor Author

change requested as per prev comment. Also, please resolve conflicts by rebasing (not merging) from the develop branch

Done

This allows customising next/previous service shortcuts, but opens the
door to using the same code and UI for customizing further shortcuts.

These particular shortcuts were requested to be customizable in the
github issue ferdium#53
Copy link
Contributor

@vraravam vraravam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the contribution @insidewhy

@vraravam vraravam merged commit 167a6a0 into ferdium:develop Oct 12, 2024
5 checks passed
@vraravam
Copy link
Contributor

@all-contributors please add @insidewhy for code

Copy link
Contributor

@vraravam

I've put up a pull request to add @insidewhy! 🎉

@insidewhy
Copy link
Contributor Author

@vraravam Thanks for your help and for merging this so quickly 🎄

@insidewhy insidewhy deleted the feature/allow-customising-hotkeys branch October 13, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants