Conversation
A SwiftUI Settings window opens from the Dock menu's "Settings…" item, or by clicking the Dock icon when no windows are visible. Toggles for "Animations" and "Live previews" save to ~/Library/Application Support/ cmdcmd/config.json on change and apply live without restart. Saving via the UI re-encodes the JSON and drops template comments; hand-edited bindings/trigger are preserved. Trigger and bindings are not exposed in this window — edit config.json directly via "Open Config…". Co-Authored-By: plyght <plyght@peril.lol> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace full re-encode with a small in-place patcher that scans the file as text, skipping line comments and strings, and replaces only the value of the requested top-level key. Inserts the key just before the root closing brace if it doesn't exist (carries a trailing comma onto the previous entry as needed). Comments, key order, and any hand-formatting in config.json now survive a Settings save round-trip. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
With live previews disabled, tiles render a single screenshot and never emit further frames, so lastSignificantChangeAt stays at init time and every tile crosses the 2.5s idle threshold. Skip starting the activity timer entirely in that mode so the dot stays hidden. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SwiftUI Settings window opens from the Dock menu ("Settings…") or by clicking the Dock icon with no visible windows (`applicationShouldHandleReopen`). Exposes the two existing visual settings:
Toggling either writes `~/Library/Application Support/cmdcmd/config.json` on change and applies live without restart (via `Overlay.updateConfig`).
Trigger and bindings stay in the JSON file ("Open Config…" button passes through). Saving via the UI re-encodes the file and drops template comments — bindings/trigger keys are preserved.
Credit to @plyght — adapted from #1.
Test plan
🤖 Generated with Claude Code