Hacker News new | ask | show | jobs
by msoad 1572 days ago
FYI in macOS you can do this using ⌘ + `

I'm assuming most of you know this but just in case

3 comments

FYI, this is configurable via System Preferences → Keyboard → Shortcuts → Keyboard → Move focus to active or next window.
to exapnd, there are three similar shortcuts (add shift to reverse order):

  1. ⌘⇥ (cmd-tab) - regular mac app switching
  
  2. ⌘-`(cmd-grave) - "Move focus to next window"

  3. ⌥⌘⇥ (opt-cmd-tab) - "Move focus to active or next window"
this last one needs manual configuration iirc, and this is what mine is configured to. it's the one that acts most like "switch back to the last active context". however, the system is somewhat unintuitive about how it designates the "next" window (especially if you intermingle all three shortcuts), so it's not very reliable.
Doesn't work when windows are in full screen..
Does not work in all keyboard layouts though. One more reason to use US layout.
I have bound it to ⌘. (command + period)
Surely you can re-map it though.
You can remap it in system preferences. For a UK keyboard it makes the most sense to map it to “section” which is directly above tab.
I map that key (without Cmd) to Escape on my Touch Bar MacBook... The best, yet should be unnecessary, key map tweak.
I can't recommend BetterTouchTool enough for touch bars. You can setup custom buttons, gestures, widgets, etc.

On mine I do: - A button to show desktop at the top left, so I can tap it, start dragging something, and tap again to drag things into windows

- some common function keys for editing

- links to work webpages and note files I use frequently

- Some shortcuts to system stuff: play/pause media, silence notifications, take a screen shot, etc.

- swiping with 2 fingers controls volume, 3 for screen brightness, 4 for keyboard backlight.

All of these have become second nature, and turned the touchbar from a nuisance to disappointment future macbooks won't have them anymore.

Obviously it still may not be useful to you, but it might be worth trying the demo as long as you're stuck with it for now.

https://folivora.ai/

I did that on my old TouchBar Mac too, life saving. As soon as they brought out one with an escape key I replaced it. And again when the new ones came out with no TouchBar at all. What a farce the TouchBar was.
I’ve been using a third party piece of software called witch from many tricks to do window switching!

Wasn’t aware this is natively supported in OSX, and doesn’t seem to be working.