emacs-libvterm icon indicating copy to clipboard operation
emacs-libvterm copied to clipboard

query-replace in vterm

Open KTM25 opened this issue 10 months ago • 2 comments

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!

KTM25 avatar Apr 09 '24 17:04 KTM25

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.

Sbozzolo avatar Apr 10 '24 01:04 Sbozzolo

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

KTM25 avatar Apr 10 '24 16:04 KTM25