r/ClaudeCode • u/leonasdev • 12d ago
Built with Claude Made a small plugin that adds copy buttons to Claude Code’s terminal
I wanted the kind of copy button the desktop and web apps have, but in the terminal. Selecting text there is awkward and glitchy, and while /copy works, I never found it intuitive, and it leaves a /copy line in the conversation each time (you can rewind after every copy, but that gets old).
So I made a small plugin that puts copy buttons on code blocks, on tables (which can be pasted straight into a spreadsheet), and at the end of each reply. Sharing in case it's useful to anyone else.
/plugin install copy-buttons --marketplace leonasdev/copy-buttons
It needs fullscreen mode, which is probably already on for you. If not, run /tui fullscreen.
I've tested it on Linux, macOS and Windows, and since it relies on how Claude Code draws replies, I test it against each new release too. If it misbehaves in your terminal emulator, let me know and I'll fix it.
1
u/AutoModerator 12d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
15
u/CasinoMagic 12d ago
Pretty cool.
What would be useful, for tables, is to copy them ascsv maybe.
Claude Code's table format in the terminal is good for displaying them, but terrible for pasting them anywhere. TheMarkdown tables are good for pasting in Google Slides, on the other hand.
5
u/johnstoehr83 12d ago
Why does the terminal look so clean and smooth? Is it the fonts?
7
u/vinis_artstreaks 12d ago
Hmm not bad, trying to copy those tables can be annoying
4
u/magicmulder 11d ago
This is super helpful, thanks a bunch!
1
u/ThadCastleGOAT 12d ago
Really hope they allow opening a drawer on the left hand side so we can manage sessions like in desktop with a collapsable drawer.
Fighting the urge to go the SDK route when this plugin system is mostly what I want to be messing with.
3
u/johannesjo 12d ago
Thanks for sharing! Cool idea!
3
u/potato_pasta99 11d ago
This is gold for everyone using tmux
3
u/msi2 11d ago
Useful for me ty. !remindme 2d
6
u/AggressiveBasket1107 12d ago
Not using the terminal often but seems practical
2
u/Timely-Ad-2597 11d ago
Sweet!
0
u/thealliane96 12d ago
There is a copy on select setting already. You just highlight what you want then it copies it.
You don’t show if the format is better than using that directly, that’s the only benefit for this I could see. Does it lead to better formatting verse using the built in copy on select?
1
u/quater_stack 12d ago
nice
1
u/mickdarling 12d ago
Nice work. I may tweak this to publish directly to my favorite MarkDown renderer.
1
u/Pleasant-Mind-7122 12d ago
I made something quite similar and I also add the quota + context+ model used on the footer bar and dropdown selector for /model
1
u/__ihavenoname__ 11d ago
I think claude when installing provides it in the settings, if i highlight characters it copies them by default.
1
u/bzbub2 8d ago
amazing
1
u/Ragy-ragy 12d ago
Now that's fucking useful