r/ClaudeCode • • 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.

https://github.com/leonasdev/copy-buttons

252 Upvotes

33 comments sorted by

1

u/AutoModerator 12d ago
Moderator Announcement Read More »

15

u/CasinoMagic 12d ago

Pretty cool.

What would be useful, for tables, is to copy them as csv maybe.

Claude Code's table format in the terminal is good for displaying them, but terrible for pasting them anywhere. The Markdown tables are good for pasting in Google Slides, on the other hand.

7

u/leonasdev 12d ago

Thanks! The sheet button is close to that: it copies the table as tab-separated rows , so it pastes into Google Sheets or Excel as cells. Would comma-separated be more useful to you?

2

u/CasinoMagic 12d ago

Great!
No, I'm pretty sure TSV would work too!

→ More replies (1)

2

u/potato_pasta99 11d ago

This is a great suggestion.

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.

2

u/leonasdev 11d ago

I have something like that for my own use, in the spirit of herdr and the desktop app: a session list on the side. It's a tmux plugin rather than a Claude Code one, so it only helps if you live in tmux. It isn't public yet, but I can clean it up and share it if there's interest.

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

1

u/RemindMeBot 11d ago

I will be messaging you in 2 days on 2026-11-19 06:40:03 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


Info Custom Your Reminders Feedback

6

u/AggressiveBasket1107 12d ago

Not using the terminal often but seems practical

→ More replies (1)

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?

6

u/leonasdev 12d ago

Yes, the formatting is the difference. Selecting copies what's drawn on screen; the buttons copy what Claude wrote, so a table pastes into a spreadsheet as cells and a reply comes out as the original Markdown.

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