jixiuf / vterm-toggle

toggles between the vterm buffer and whatever buffer you are editing.
GNU General Public License v3.0
189 stars 12 forks source link

Restart vterm in `vterm-toggle-cd` if vterm process has exited #9

Closed failable closed 4 years ago

failable commented 4 years ago

Currently vterm-toggle-cd will start vterm when the first time it is called. But if the process exited by C-d or exit RET, calling vterm-toggle-cd will only pop the vterm buffer, without restarting the process. I will this feature maybe helpful.

jixiuf commented 4 years ago

why not just

(setq  vterm-kill-buffer-on-exit t)
failable commented 4 years ago

Didn't know this setting...Thanks for the tip!