akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.39k stars 176 forks source link

[Bug] Floating windows don't auto open on exec #68

Closed will closed 3 years ago

will commented 3 years ago

Following up from https://github.com/akinsho/nvim-toggleterm.lua/issues/62#issuecomment-885187362

Summary: when I was using require('toggleterm').exec(...) to run something with this configuration, the floating terminal would not auto open

@akinsho said:

Seems term exec doesn't open a float like it does for splits since it doesn't really seem to take the direction into consideration, maybe.

zeertzjq commented 3 years ago

I think it is caused by go_back = true in term:send(cmd, true). I guess go_back can be made optional.