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

Shortcut: Swap focused main window with previously focused window #1042

Closed
ubuntudroid opened this issue Aug 7, 2020 · 5 comments
Closed

Comments

@ubuntudroid
Copy link

Is your feature request related to a problem? Please describe.
I usually have three or more windows open on my laptop. Using the tall layout I often find myself swapping one of the non-main windows with the main one when checking something in those windows only to swap the previous main one back to main a few seconds later (a little bit like opt-tabbing). That becomes a bit tedious when doing very often (swapping the two windows as main windows back and forth).

Describe the solution you'd like
Pressing the shortcut for swap focused window with main window while the main window already is focused could swap it with the previously focused window, but keep the focus on the main pane.

Describe alternatives you've considered
Right now I am using opt-tab + the shortcut for swap focused window with main window. This works, but it's not super convenient. If there is no good way to implement my preferred solution I will likely just set up an own shortcut using Alfred.app or BetterTouchTool which combines those two. However it would be another shortcut to memorise.

@maxandersen
Copy link

maybe have the short cut for focused main window when the focus is on the main focused window be to swap back.

so it becomes a toggle - that would be super nice.

@syl20bnr
Copy link

syl20bnr commented Sep 21, 2022

This shortcut would be awesome and make the Two Panes layout even more usable.
Returning from main window to last focused window is deeply needed, it is a pain to be forced to cycle through multiple windows just to get back to the previously focused window.

In other terms:
- changing focus to main windows is O(1)
- thus changing back focus to previously focused window should also be O(1)

See issue: #1313

@syl20bnr
Copy link

shameless ping @ianyh 👼🏻

@syl20bnr
Copy link

mmm will open a new issue about this, this is a different feature request.

@ianyh
Copy link
Owner

ianyh commented Mar 3, 2023

Done in #1390

@ianyh ianyh closed this as completed Mar 3, 2023
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

No branches or pull requests

4 participants