Skip to content

Comments

fix: Add copy/paste functionality to chat input field#30

Merged
edenreich merged 4 commits intomainfrom
claude/issue-29-20250813-1126
Aug 13, 2025
Merged

fix: Add copy/paste functionality to chat input field#30
edenreich merged 4 commits intomainfrom
claude/issue-29-20250813-1126

Conversation

@edenreich
Copy link
Contributor

@edenreich edenreich commented Aug 13, 2025

Fixes #29

This PR adds copy/paste functionality to the chat input field:

  • Ctrl+C: Copies input text to clipboard (when text exists)
  • Ctrl+V: Pastes clipboard content to input field
  • Ctrl+X: Cuts input text (copy and clear)
  • Ctrl+W: Delete word
  • Smart Ctrl+C behavior: copy when input has text, quit when empty
  • Added cross-platform clipboard support using github.com/atotto/clipboard
  • Refactored input handling code for better maintainability

Generated with Claude Code

claude bot and others added 4 commits August 13, 2025 11:32
- Add clipboard support using github.com/atotto/clipboard library
- Implement Ctrl+C to copy input text to clipboard
- Implement Ctrl+V to paste clipboard content to input
- Add Ctrl+X to cut (copy and clear) input text
- Smart Ctrl+C handling: copy when input has text, quit when empty
- Refactor HandleKey method to reduce cognitive complexity
- Update help text to reflect new copy/paste shortcuts

Fixes #29

Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
…ations

Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Signed-off-by: Eden Reich <eden.reich@gmail.com>
@edenreich edenreich merged commit 4c02389 into main Aug 13, 2025
1 check passed
@edenreich edenreich deleted the claude/issue-29-20250813-1126 branch August 13, 2025 12:46
ig-semantic-release-bot bot pushed a commit that referenced this pull request Aug 13, 2025
## [0.10.1](v0.10.0...v0.10.1) (2025-08-13)

### 🐛 Bug Fixes

* Add copy/paste functionality to chat input field ([#30](#30)) ([4c02389](4c02389)), closes [#29](#29)
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.10.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Can't copy paste into the input field

1 participant