Skip to content

Added Ctrl+= / Ctrl+− zoom and Alt+Click Wheel reset for Terminal and Markdown Preview - #122

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/zoom-keyboard-shortcuts
May 18, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/zoom-keyboard-shortcuts

Conversation

@oleg68

@oleg68 oleg68 commented May 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Added Ctrl+= (zoom in) and Ctrl+− (zoom out) keyboard shortcuts for terminal and Markdown Preview
  • Added Alt+Click Wheel (middle mouse button) as additional reset shortcut alongside Ctrl+0
  • Updated right-click Zoom submenu to show the new shortcut hints
  • Replaced bindResetKey with unified bindZoomKeys (no duplication via shared private bindKey helper)

Test plan

  • Terminal: Alt+Scroll, Ctrl+=, Ctrl+−, Ctrl+0, Alt+click wheel — all zoom/reset correctly
  • Markdown Preview: same set of shortcuts works
  • Right-click → Zoom submenu shows updated shortcut labels
  • Plain terminal scroll (no Alt) not affected
  • NetBeans global Ctrl+0 action not triggered when terminal/preview has focus

🤖 Generated with Claude Code

… Markdown Preview

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 8a3253d into nbplugins:main May 18, 2026
3 checks passed
@oleg68
oleg68 deleted the feature/zoom-keyboard-shortcuts branch May 18, 2026 14:05
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