akermu / emacs-libvterm

Emacs libvterm integration
GNU General Public License v3.0
1.69k stars 135 forks source link

query-replace in vterm #714

Open KTM25 opened 5 months ago

KTM25 commented 5 months ago

Currently if I run M-% I get

query-replace-read-args: Buffer is read-only: #<buffer vterm>

Has anyone been successful on sending specific emacs config into vterm?

I'd be willing to create my own functions to make this work but I'm pretty new that for my emacs configs and would appreciate some direction to get started.

Thanks!

Sbozzolo commented 5 months ago

What would you like to accomplish specifically? The past history of your terminal is fundamentally read-only, are you trying to do string replacement on the prompt line?

If you want to just manipulate the text on the screen you can consider entrying in copy-mode, and copy the buffer to a new buffer when you can do whatever you want. That buffer will not be a vterm buffer.

KTM25 commented 5 months ago

I was hoping to do a string replacement on the prompt line. Apologies, should've been more specific.