2025-03-07

Fullscreen

Promo

Fullscreen mode in MacOS (Cmd+Ctrl+F or the green button in the corner of the window) is a convenient way to focus on your work. The app takes up the entire screen, and the Dock and menu bar are hidden.

When working with VSCode, this mode is easy to use thanks to native tabs - just set one of them to fullscreen and merge all the windows. However, Zed, which I currently use, does not support native tabs yet.

When I have many Zed windows open (11 at the time of writing), manually setting them all to fullscreen is inconvenient. So I wrote a script that automatically sets all open Zed windows to fullscreen.

zed-fullscreen.scpt

It can be launched with the command osascript zed-fullscreen.scpt or can be imported into Apple Shortcut.

Note: For this script to work, you must grant osascript (and the app you are running it from), Shortcuts (and Script Editor) permissions in System Preferences → Privacy & Security → Accessibility.