Add keyboard commands: zoom, find-again, reload#3
Merged
Conversation
Add `nextZoom(from:direction:)` with discrete `zoomSteps` ladder and `ZoomDirection` enum. Pure function; off-ladder inputs snap to nearest rung, result clamped at bounds. Covered by 6 ZoomTests (TDD). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds ⌘G (Find Next) and ⌘⇧G (Find Previous) menu items that reuse the existing findNext()/findPrevious() methods; falls back to opening the find bar when no query has been entered yet. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds ⌘R menu item under View that re-reads and re-renders the current file on demand — a manual fallback for saves the file watcher misses. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
markee | fb675a8 | Commit Preview URL Branch Preview URL |
May 18 2026, 11:50 PM |
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.
Summary
Adds three groups of keyboard commands, prompted by the missing zoom shortcut:
⌘+/⌘=/⌘-/⌘0(zoom in / zoom in / zoom out / actual size). Discrete browser-style steps, driven through a newwindow.markee.setZoom()JS call applying CSSzoom(reflows text, scales code/images/KaTeX/Mermaid). The level is one global value inUserDefaults— shared across windows and remembered across launches.⌘G/⌘⇧G(find next / previous), with discoverable Edit-menu items. Reuses the existing find machinery; an empty query opens the find bar.⌘Rmanually re-reads and re-renders the file (a fallback for the rare save the watcher misses).Native
WKWebView.pageZoomwas avoided deliberately — it is macOS 14+ and the deployment target is macOS 13.Design + plan:
docs/superpowers/specs/2026-05-18-keyboard-shortcuts-design.md,docs/superpowers/plans/2026-05-18-keyboard-shortcuts.md(gitignored, local only).Test Plan
swift test— 30 tests pass (6 newZoomTestscoveringnextZoomstepping + clamping)node --test— 24 JS tests passmake appbuilds clean⌘+/⌘=/⌘-/⌘0resize the preview; text reflows⌘G/⌘⇧Gcycle matches with the find bar both open and closed⌘Rre-renders the document🤖 Generated with Claude Code