Skip to content

feat(config): make wheel scrolling configurable - #853

Draft
benvinegar wants to merge 1 commit into
mainfrom
feat/configurable-wheel-scroll-lines
Draft

feat(config): make wheel scrolling configurable#853
benvinegar wants to merge 1 commit into
mainfrom
feat/configurable-wheel-scroll-lines

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Summary

  • add a user-only wheel_scroll_lines preference accepting "auto" or a fixed 1–10 rows per wheel event
  • add --wheel-scroll-lines as a launch-scoped override for review commands
  • preserve the existing cadence-based 1→3 row acceleration in auto mode while making numeric values exact and predictable
  • document the option, add a patch changeset, and cover config, CLI, helper, bootstrap, and real PTY behavior

Example

# ~/.config/hunk/config.toml
wheel_scroll_lines = 3
hunk diff --wheel-scroll-lines 3

Repository config intentionally cannot set this machine-local input preference.

Testing

  • bun run typecheck
  • bun run lint
  • bun run format:check
  • bun run check:docs
  • bun run deps:check
  • bun run test
  • bun run test:integration — 133 passed, 1 platform skip
  • bun run test:tty-smoke — 9 passed
  • source invocation in a real PTY against a two-file diff with --wheel-scroll-lines 3

This PR description was generated by Pi using OpenAI GPT-5.6 Sol

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hunk-web Ready Ready Preview Aug 25, 2026 10:10pm

Request Review

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