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

hooks for vterm-copy-mode enter and exit?

Open samcramer opened this issue 3 years ago • 6 comments

I'd like to make the window background color different when vterm is in vterm-copy-mode so I can easily see when I'm in copy mode. I use minions.el , so the mode line doesn't indicate this in my case. I think this could be done with vterm-copy-mode hooks. It would be great if you could provide either those hooks or a more direct way to do this.

Awesome package, BTW!

samcramer avatar Mar 11 '22 03:03 samcramer

Never mind -- I think this can be done by setting the binding of C-c C-t to a wrapper for vterm-copy-mode.

samcramer avatar Mar 11 '22 17:03 samcramer

This might be useful for other reasons, I will keep it open. If anyone reads this message and wants this feature, please use a reaction button to express your interest.

Sbozzolo avatar Mar 11 '22 17:03 Sbozzolo

It's just cleaner than advice, but advice or decorating commands is fine for commands until they get used by other packages

psionic-k avatar May 31 '22 07:05 psionic-k

the enter copy mode hook could be done with (add-hook 'vterm-copy-mode-hook xxxx), and not able to know whether the copy mode is done. I need this feature to modify the mode-line color to let myself know whether I'm in copy mode

falood avatar Sep 03 '22 03:09 falood