Small Windows-style conveniences for macOS, packaged as one menu bar app with a Finder extension. Building requires only Apple's Command Line Tools, not the full Xcode app.
| Feature | Where | Behavior |
|---|---|---|
| Show Desktop / Restore Windows | Global ⌘D |
Minimizes windows on the current desktop; selecting an app with ⌘Tab restores that app's windows, while clicking the desktop does not restore them |
| Show Desktop hot corner | Bottom-right corner of the primary display | Toggles the same desktop state after a 300 ms dwell; leaving the corner does not restore windows |
| Window Switcher | Global ⌘Tab / ⌘⇧Tab |
Replaces the app switcher with a tiled view of individual windows, including minimized windows; release ⌘ to bring only the selected window forward |
| Cut / move files | ⌘X and ⌘V in Finder |
Uses Finder's native Copy and Move Item commands; other apps are unaffected |
| Open with VS Code | Top-level Finder context menu for files, folders, and folder aliases | Opens the selected item in VS Code |
| Open in Terminal | Top-level Finder context menu for files, folders, and folder aliases | Opens a folder in Terminal; for a file, opens its containing folder |
| Copy Path | Top-level Finder context menu | Copies full paths, one per line for multiple items |
| Create Desktop Shortcut | Top-level Finder context menu | Creates a macOS alias without moving the source |
| New Markdown File | Top-level Finder context menu | Creates an empty .md file inside a folder, beside a file, or in the current folder; numbers duplicate names |
./install.shThe script builds and installs /Applications/BestWinMac.app, registers its Finder extension, and sets it to launch at login. Open Settings... from the BestWinMac menu bar icon to toggle each feature independently. Changes take effect immediately and persist across launches.
The keyboard and window features need BestWinMac enabled in System Settings > Privacy & Security > Accessibility. The installer uses ad-hoc signing, so rebuilding the app can invalidate its previous approval. If ⌘D or Finder cut stops working after an update, reset only this app's approval with tccutil reset Accessibility local.zijian.BestWinMac, then add /Applications/BestWinMac.app in Accessibility settings again.
Window-level focusing uses macOS's private SkyLight framework because the public activation API raises an application rather than one cross-application window. This is suitable for a locally installed utility, but the behavior should be retested after major macOS updates.
Finder cut follows the shortcut-conversion approach of the MIT-licensed YONN2222/cmdX; see third_party/cmdX-LICENSE. RightOpen's origin and MIT license are recorded in finder/LICENSE.
The targeted key-window event follows the MIT-licensed asmvik/yabai technique; see third_party/yabai-LICENSE.
app/: Menu bar app, window switcher, Show Desktop shortcut, and Finder cut shortcut.finder/: Finder Sync extension and file/alias tests.shared/: Feature settings used by both processes.install.sh: Build, sign, install, and register the app.tools/render_icon.swift: Reproducible app and menu bar icon source; run./tools/build_icon.shto updateassets/.
mkdir -p build
swiftc finder/src/DesktopAlias.swift finder/tests/DesktopAliasTests.swift -o build/DesktopAliasTests
./build/DesktopAliasTests --desktop
swiftc app/CutPasteboardState.swift app/tests/CutPasteboardStateTests.swift -o build/CutPasteboardStateTests
./build/CutPasteboardStateTests
swiftc app/HotCornerController.swift app/tests/HotCornerTriggerTests.swift -o build/HotCornerTriggerTests -framework AppKit
./build/HotCornerTriggerTests
swiftc app/WindowSwitcherController.swift app/tests/WindowSwitcherSelectionTests.swift -o build/WindowSwitcherSelectionTests -F /System/Library/PrivateFrameworks -framework SkyLight -framework AppKit -framework ApplicationServices -framework SwiftUI
./build/WindowSwitcherSelectionTests
swiftc shared/FeatureSettings.swift shared/tests/FeatureSettingsTests.swift -o build/FeatureSettingsTests
./build/FeatureSettingsTests
swiftc finder/src/DesktopAlias.swift finder/src/NewFile.swift finder/tests/NewFileTests.swift -o build/NewFileTests
./build/NewFileTests
swiftc finder/src/OpenTarget.swift finder/tests/OpenTargetTests.swift -o build/OpenTargetTests
./build/OpenTargetTests