gbammc / Thor

Switch the right application ASAP.
MIT License
1.16k stars 69 forks source link

Proposal: Add option to make repeated presses of shortcut key cycle through windows instead of close application #36

Open TheoMcGinley opened 3 years ago

TheoMcGinley commented 3 years ago

Assume I have e.g F3 as a shortcut to open Safari.

Current behaviour:

Proposed behaviour:

This would greatly improve workflows where multiple windows of the same application are used, such as multiple IDE project windows or multiple separate Safari instances.

As some people may prefer the current opening and closing behaviour, this new behaviour would be enabled under a checkbox in settings.


If you would accept the PR, I would be happy to write the changes myself, though I will need some advice in how to set up the project for development and which parts of the code are responsible for the window management.

Let me know what you think! :)

kenji21 commented 3 years ago

Hi,

App doesn't closes, it simply "hide", like when you use cmd + H shortcut

TheoMcGinley commented 3 years ago

Sorry, bad wording on my part, I've updated the above. Is this a feature you would consider merging into master if developed?

olavfosse commented 2 years ago

👍

I came here to request the same feature. I could try implementing it next weekend, but I don't know much swift / objc / macOS APIs so no promises 😄. Would you be willing to merge if I get it working @gbammc?