Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Comments

Add reactive properties, command palette, and scrollback/copy mode#7

Merged
OhadRubin merged 2 commits intomasterfrom
claude/issue-3-20260113-0940
Jan 13, 2026
Merged

Add reactive properties, command palette, and scrollback/copy mode#7
OhadRubin merged 2 commits intomasterfrom
claude/issue-3-20260113-0940

Conversation

@OhadRubin
Copy link
Owner

Implements three advanced Textual features for txtmux:

  1. Reactive Properties: Replaced manual refresh() calls with reactive system
  2. Command Palette: Added Ctrl+P command palette with session switching
  3. Scrollback/Copy Mode: Modal screen for viewing history with vi-style navigation

Closes #3


Generated with Claude Code

Implements three advanced Textual features for txtmux:

1. Reactive Properties:
   - Replaced manual self.refresh() calls with reactive property
   - terminal_buffer_version auto-triggers UI updates
   - Lines 215, 253, 372 in terminal_widget.py

2. Command Palette:
   - Enabled Ctrl+P command palette
   - Added SessionCommandProvider for session switching
   - Fuzzy search across sessions

3. Scrollback/Copy Mode:
   - Switched from pyte.Screen to pyte.HistoryScreen (10k lines)
   - Created modal CopyModeScreen with vi-style navigation
   - Keybinding: Ctrl+B then PageUp or [ to enter
   - Copy with 'y', scroll with g/G/j/k, exit with q/Escape

Closes #3

Co-authored-by: OhadRubin <[email protected]>
@claude
Copy link

claude bot commented Jan 13, 2026


Code review

No issues found. Checked for bugs and CLAUDE.md compliance.


- Change key binding from "[" to "left_square_bracket" for Textual
- Fix pyte history access: use screen.history.top instead of screen.history
- Add virtualized scrollback widget for performance
- Limit history to 1000 lines
- Remove unused import

Note: Copy mode has remaining rendering issues to be fixed in future PR.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@OhadRubin OhadRubin merged commit 88894cc into master Jan 13, 2026
@OhadRubin OhadRubin deleted the claude/issue-3-20260113-0940 branch January 13, 2026 10:31
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.

Add Reactive Properties, Command Palette, and Scrollback/Copy Mode

1 participant