Skip to content

Enable scrolling in task detail view with j/k keys and mouse wheel#445

Open
bborn wants to merge 1 commit intomainfrom
task/1267-make-task-details-pane-scrollable
Open

Enable scrolling in task detail view with j/k keys and mouse wheel#445
bborn wants to merge 1 commit intomainfrom
task/1267-make-task-details-pane-scrollable

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Feb 11, 2026

Summary

  • Added j/k key scrolling (vim-style) in task detail view
  • Added mouse wheel scrolling in task detail view
  • Updated help text to show available scroll methods

Changes

Previously, the task detail pane viewport was only scrollable with PgUp/PgDn keys. Users naturally expected to use j/k keys and mouse wheel for scrolling, but these were not working.

Key changes:

  1. Removed j/k key blocking in updateDetail() to enable vim-style scrolling
  2. Added mouse event routing to detail view for mouse wheel support
  3. Updated help text to show "j/k/wheel" as scroll options

The viewport component from Bubble Tea already supported these inputs, but they were being blocked at the app routing level.

How it works

  • Mouse wheel scrolling: Mouse events are now passed to the detail view's viewport while preserving tmux's native pane-clicking functionality (which operates at the tmux level)
  • j/k scrolling: These keys are no longer blocked and are passed to the viewport's default key bindings

Navigation remains unchanged

  • Arrow keys (↑/↓) still navigate between tasks
  • j/k now scroll within the current task's content
  • Mouse clicks on tmux panes still switch between panes (handled by tmux)

Test plan

  • Code compiles successfully
  • Verify j/k keys scroll the detail view content
  • Verify mouse wheel scrolls the detail view content
  • Verify arrow keys still navigate between tasks
  • Verify clicking on tmux panes still switches focus

🤖 Generated with Claude Code

Previously, the task detail pane viewport was only scrollable with
PgUp/PgDn keys. Users naturally expected to use j/k keys (vim-style)
and mouse wheel for scrolling, but these were not working.

Changes:
- Removed j/k key blocking in detail view to enable vim-style scrolling
- Added mouse event routing to detail view for mouse wheel scrolling
- Updated help text to show "j/k/wheel" as scroll options

The viewport component already supported these inputs, but they were
being blocked at the app routing level. Mouse events are now passed
to the detail view while preserving tmux's native pane-clicking
functionality (which operates at the tmux level, not the app level).

Navigation keys remain unchanged:
- Arrow keys (↑/↓) navigate between tasks
- j/k scroll within the current task's content
- Mouse clicks on tmux panes still switch between panes

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.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