Skip to content

Comments

Add copy mode to vf-tui#745

Merged
snimu merged 4 commits intomainfrom
sebastian/vf-tui-copy-2026-01
Jan 19, 2026
Merged

Add copy mode to vf-tui#745
snimu merged 4 commits intomainfrom
sebastian/vf-tui-copy-2026-01

Conversation

@snimu
Copy link
Contributor

@snimu snimu commented Jan 19, 2026

Description

Press c to enter copy mode. The completion column will be focussed by default. There, you can:

  • Press Tab to switch between the completion and prompt column
  • Highlight text with the mouse or Shift+(left/right arrow)
  • Press c again to copy text (if any text is highlighted, copies that highlighted text, otherwise copies the whole column text)
  • Esc to leave the copy mode
  • q to quit vf-tui

Images:

Completion column selected:

image

Prompt column selected:

image

Copied highlighted text:

image

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Note

Introduces interactive Copy Mode in the TUI for extracting prompt/completion text.

  • New CopyScreen modal with read-only TextArea columns; supports selection via mouse/Shift+Arrows and copying via c (Tab switches columns, Esc closes, q quits)
  • ViewRunScreen: binds c to open Copy Mode, tracks plain prompt/completion text for copying
  • Adds clipboard and selection helpers; expands CSS and imports for copy UI
  • Docs (overview.md, faqs.md) updated to mention Copy Mode; small formatting fix

Written by Cursor Bugbot for commit ef73928. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@snimu snimu requested a review from willccbb January 19, 2026 18:57
@snimu snimu merged commit 3dc90e6 into main Jan 19, 2026
6 checks passed
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.

2 participants