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

Evil state switching suggestions #2

Closed noctuid closed 5 years ago

noctuid commented 5 years ago

vterm-toggle--switch-evil-state should check whether evil mode is actually enabled not just if evil has been loaded (e.g. (bound-and-true-p evil-local-mode)). It would also be nice if there was a setting to disable this functionality (don't switch states when toggling).

Also, thanks for this package. vterm-toggle-cd is very convenient.

jixiuf commented 5 years ago

if you don't want to switch states when toggling:

(setq vterm-toggle-evil-state-when-enter nil)
(setq vterm-toggle-evil-state-when-leave nil)
noctuid commented 5 years ago

Awesome, thanks!