Improve TUI and add ability to select and copy text - #12
Merged
Conversation
- Implements a RichLog replacement supporting mouse selection, Ctrl+A, and Ctrl+C to copy selected text to clipboard. - Preserves ANSI color codes, strips control sequences, and trims buffer to max_lines. - Adds Selection dataclass for text range representation. - Includes integration and unit tests for SelectableLog behavior. - Adds pyperclip as a dependency for clipboard support.
- Implement ContextMenu widget for right-click actions in TUI - Add WidgetID constants for widget identifiers - Integrate ContextMenu into widgets module - Add integration tests and feature scenarios for context menu behavior - Fix minor formatting in test and widget files
- Implement SearchInput widget for log searching - Add search state, highlighting, and navigation to SelectableLog - Support opening search with /, Ctrl+F, or context menu - Highlight matches (current in orange, others in yellow) - Enable navigation with n/N, F3/Shift+F3, and wrap-around - Add integration and unit tests for search behavior
- Add layers to Screen in TUI_CSS - Remove Ctrl+C binding and key handler from SelectableLog - Change context menu mouse button from 3 to 2
Add LabeledValue widget for aligned label/value display and value copying. Update CampersTUI to use LabeledValue for status panel fields. Refactor widget updates to set the value property. Update tests for new widget interface.
kamilc
marked this pull request as ready for review
December 27, 2025 12:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added SelectableLog widget that replaces RichLog with proper text selection, clipboard support, and vim-like search.
Changes:
Resolves: #10