Skip to content

feat: zoom waveform with [/], fit view with F#908

Open
vowstar wants to merge 1 commit into
DreamSourceLab:masterfrom
vowstar:feat-zoom-shortcuts
Open

feat: zoom waveform with [/], fit view with F#908
vowstar wants to merge 1 commit into
DreamSourceLab:masterfrom
vowstar:feat-zoom-shortcuts

Conversation

@vowstar
Copy link
Copy Markdown
Contributor

@vowstar vowstar commented May 28, 2026

Adds ] and [ for zoom in/out and F to fit the whole capture in view. Same as GTKWave and Cadence Virtuoso.

Arrow keys still zoom, but plenty of keyboards have no dedicated arrow row (60%, HHKB, etc.) so it's always an Fn chord. Also awkward when one hand is on the mouse. Brackets and F sit next to the home row.

Match EDA convention (GTKWave, ModelSim, Virtuoso): F for "Zoom
Full"; ]/[ for zoom in/out, mirroring the image-editor convention
(Photoshop, Krita). Existing Left/Right arrow zoom is preserved.

The F handler explicitly resets offset to 0 because
View::auto_set_max_scale() only sets scale and leaves offset at
wherever the user had scrolled to.

Signed-off-by: Huang Rui <vowstar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant