magit / with-editor

Use the Emacsclient as the $EDITOR of child processes
http://magit.vc/manual/with-editor
GNU General Public License v3.0
188 stars 44 forks source link

Feature Request: vterm support #81

Closed dpassen closed 4 years ago

dpassen commented 4 years ago

vterm is a popular terminal emulator and alternative to eshell, shell, and term. It would be nice to have with-editor working from within.

tarsius commented 4 years ago

I was planning to take vterm for a spin for a long time. Maybe this requests is the final nudge needed.

I quickly ran into my first issue and hope you can help with that (and maybe subsequent issues). Of course I immediately ran emacs inside emacs and now I cannot figure out how to quit just the inner emacs--the outer emacs wants to act on the C-x C-c. I would expect there to be some "pass through mode" but cannot locate it.

dpassen commented 4 years ago

Not as far as I can tell. All the more reason for integration?

Sbozzolo commented 4 years ago

@tarsius, there is no "pass through mode" as almost all the keys, except the ones defined in vterm-keymap-exceptions are passed directly to the shell (most notably C-c, C-x). You can send those with vterm-send-C-x and vterm-send-C-c (or C-c C-c).