Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query-replace in vterm #714

Open
KTM25 opened this issue Apr 9, 2024 · 2 comments
Open

query-replace in vterm #714

KTM25 opened this issue Apr 9, 2024 · 2 comments

Comments

@KTM25
Copy link

KTM25 commented Apr 9, 2024

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
Copy link
Collaborator

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
Copy link
Author

KTM25 commented Apr 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants