You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It also happens if we call the :{count}ToggleTerm twice in quick succession as well.
Why does that matter?
I think being able to call it in quick succession can be useful for some key bindings. For example. I was trying to setup the following keybinds to cycle through my current floating terminals:
I have a very similar configuration where I can switch between multiple floating terminals and I also have issues with the mode not being consistent. I want every terminal to be back in insert when it is opened. Therefore, I tried calling vim.cmd('startinsert!') in the on_open callback but as far as I can tell this doesn't. As a work around I am using a timer with a very short delay in the callback:
I have a very similar configuration where I can switch between multiple floating terminals and I also have issues with the mode not being consistent. I want every terminal to be back in insert when it is opened. Therefore, I tried calling vim.cmd('startinsert!') in the on_open callback but as far as I can tell this doesn't. As a work around I am using a timer with a very short delay in the callback:
Is there an existing issue for this?
Current Behavior
Calling
toggle
twice in quick succession will not respectpersist_mode
/start_in_insert
Expected Behavior
No amount of
toggle
calling changes the behavior.Steps To Reproduce
nvim -u repro.lua somerandomfile
:<leader>tc
followed by<leader>t;
<F8>
normal
modeEnvironment
Anything else?
Here is a video of the
Steps to Reproduce
section:https://github.com/akinsho/toggleterm.nvim/assets/7985687/a7c5e75d-609a-4c3b-a2ea-f490add9039c
Note that this behavior will happen also when calling toggle on the same terminal twice in succession as well, e.g.:
It also happens if we call the
:{count}ToggleTerm
twice in quick succession as well.Why does that matter?
I think being able to call it in quick succession can be useful for some key bindings. For example. I was trying to setup the following keybinds to cycle through my current floating terminals:
The text was updated successfully, but these errors were encountered: