Thor icon indicating copy to clipboard operation
Thor copied to clipboard

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

Open TheoMcGinley opened this issue 5 years ago • 3 comments

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

Current behaviour:

  • Press F3, Safari opens front window
  • Press F3 again, Safari hides
  • Press F3 again, Safari opens

Proposed behaviour:

  • Press F3, Safari opens front window
  • Press F3 again, Safari opens next window (how cmd+` currently works)
  • Press F3 again, Safari opens next window

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! :)

TheoMcGinley avatar Jan 26 '21 18:01 TheoMcGinley

Hi,

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

kenji21 avatar Jan 26 '21 20:01 kenji21

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

TheoMcGinley avatar Jan 26 '21 20:01 TheoMcGinley

👍

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?

olavfosse avatar Apr 03 '22 14:04 olavfosse