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

Feature request: shortcut to focus previously focused window #1313

Open
syl20bnr opened this issue Sep 21, 2022 · 1 comment
Open

Feature request: shortcut to focus previously focused window #1313

syl20bnr opened this issue Sep 21, 2022 · 1 comment

Comments

@syl20bnr
Copy link

Is your feature request related to a problem? Please describe.

We have now a shortcut to focus the main window directly with Shift+Cmd m. It is awesome but we cannot directly focus back the previous window.

This UX issue is especially annoying in Two Panes layout with more that 2 windows.

Describe the solution you'd like

We need a shortcut to go back directly to the previous focused windows so both actions are O(1).

Describe alternatives you've considered

The alternatives is to cycle through an arbitrary number of windows to go back from the main window to the previously focused window using Shift+Cmd j or Shift+Cmd k.

Additional context

N/A

@wtianyi
Copy link

wtianyi commented Oct 4, 2022

Mostly this can be done with the system window-switching shortcut of macOS: ⌘-<Tab>, except that this shortcut will work among windows across screens, so in some scenarios it will not do the job. For example, assume one is working on the secondary pane of Two Pane layout in screen 1, and the following actions are performed:

  1. Focus the main pane on screen 1
  2. Focus the screen 2
  3. Focus back to screen 1

Now, ⌘-<Tab> will not focus the secondary pane, but the last active window in screen 2, and one may have to use many key strokes or the mouse to focus the secondary pane on screen 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants