jixiuf / vterm-toggle

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

Option for vterm-toggle-cd to always activate existing vterm buffer #6

Closed noctuid closed 4 years ago

noctuid commented 4 years ago

It would be nice if there was a different command or an option for vterm-toggle-cd that would activate a recent vterm buffer even if no prompt can be found (with vterm-toggle-use-dedicated-buffer still nil). So when the current buffer is not a vterm buffer, it would always activate a recent vterm buffer if there is one but would only insert cd if the prompt is available.

Sometimes it's nice to get a new terminal if I have something running in the old one, but I'd rather have another keybinding to use in that case.

jixiuf commented 4 years ago

try

(setq vterm-toggle-cd-auto-create-buffer nil)
noctuid commented 4 years ago

Awesome, thank you!

innerout commented 4 years ago

Could you add this in the README ? It is pretty useful and probably will be essential for many people.

jixiuf commented 4 years ago

readme is updated . forgive my poor English, pull request are welcome to improve the readme or anything else.

innerout commented 4 years ago

I just made a suggestion, I did not mean to be aggressive. Your English are just fine don't worry!