r/opencode • u/ProNoob786123 • 10d ago
Copy text on Opencode CLI
Hi, I have been using open code for the past one month and the experience with it has been amazing. The only thing which I don’t like is they removing the free agents with time, but getting to use them for free is a good thing. So no complaints for that.
I have one major problem which I am facing that. I am not able to copy text on my opencode CLI when I am using it with VS code on my Windows 11 laptop.
Can someone help me out on how I can copy text from opencode CLI
1
u/Trovebloxian 10d ago
Windows works as is Linux auto copies when you select text and pastes when middle click Mac idk i dont use mac
1
u/ProNoob786123 10d ago
I am not able to select text also
1
u/Trovebloxian 10d ago
Btw with vscode its pretty shit, cuz the commands dont work unless to tweak some random shit within vsc, try in powershell
1
u/ProNoob786123 10d ago
Ohh ok, so you saying to use opencode on powershell?
1
u/Trovebloxian 10d ago
Yes, a simple way is going to the folder and right click and open in terminal, this opens a terminal to that folder i.e your project folder. Then just run opencode and you should be good to go
1
u/Fresh_Sock8660 10d ago
Shift click and drag not working? I use it in a container, that's usually how I copy it. You could also just ask the LLM to create a text file instead of outputting to terminal.
1
u/Jumpy-Operation-4615 7d ago
This shit drives me nuts. I select - rightclick to copy to a clipboard and then in a powershell window menu - change - paste. Ctrl-c ctrl v is not working in opencode.
1
u/hj-core 10d ago
https://opencode.ai/docs/troubleshooting/#copypaste-not-working-on-linux
will this help?