Skip to content

feat(editor): add typewriter mode#557

Open
murongg wants to merge 1 commit into
mainfrom
feature/536-typewriter-mode
Open

feat(editor): add typewriter mode#557
murongg wants to merge 1 commit into
mainfrom
feature/536-typewriter-mode

Conversation

@murongg

@murongg murongg commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a persisted Typewriter Mode toggle to editor settings, including all supported translations
  • keep the focused caret line centered in visual and source editors across main, split, and side panes
  • add dynamic edge gutters plus focus, mirrored-update, resize, and IME composition safeguards
  • cover preference persistence and editor scrolling behavior with focused regression tests

Why

Typewriter Mode keeps the active writing line near the center of the current editor pane, making long-form editing easier to track on larger displays.

Validation

  • pnpm test passed
  • pnpm typecheck:test passed
  • pnpm build passed
  • git diff --check origin/main...HEAD passed

Risk

  • the feature is disabled by default and can be turned off from Editor settings
  • automatic scrolling is limited to the focused pane and pauses during IME composition
  • manual desktop recording was not run; the interaction is covered by automated visual/source/split-pane tests

Screenshots

Not included because the main change is scrolling behavior rather than a static visual state.

Closes #536

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markra-web Ready Ready Preview, Comment Jul 18, 2026 1:17am

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.

[Feature]: 添加打字机模式 (Typewriter Mode)

1 participant