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

Feature: toggle if visible and not active #29

Closed iris-garcia closed 3 years ago

iris-garcia commented 3 years ago

Many times I toggle the terminal, run commands and copy some output then paste it into a different buffer, at this point I don't need the term anymore so hitting to toggle it gives me the focus of the terminal window so I have to hit again to hide it.

Would it be possible to add a variable to allow this behavior? If the window is visible (active or inactive) should hide it.

Thanks.

iris-garcia commented 3 years ago

Thank you @jixiuf for the quick implementation!