-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Navigating inside an already open and showing terminal does not enter insert mode #455
Comments
I did some restructuring of my config and now it looks like it is working with the custom autocommand. sorry for the spam. but still maybe the default config could add this behaviour out of the box? |
@uloco I'm experiencing the same issue you described. |
I still have the same issue, didn't have time to fix it yet |
Ty. I'll just chime in and say I still see this more as a feature request or a bug. Personally, going into "non-insert mode" in a terminal, as a default, doesn't ever make sense to me (I don't know what I'd do in that mode). But, of course, going into "non-insert-mode" is the default for opening a terminal in neovim; outside of toggleterm |
I was having a similar problem and fixed it by following the advice here: #473 (comment) If you are using |
Is there an existing issue for this?
Current Behavior
When a terminal is already open and showing and I navigate into another buffer split and go back to the terminal again, it does not enter inser mode. I have terminal_mapping and inser_mapping set to true. When opening the terminal with the mapping it works but once I navigate out and let it open, it does not enter insert automatically again.
I tried setting up a autocmd for TermEnter and BufEnter for term:https://* pattern but was not able to manage to do it.
Like so:
I am not sure if this should already work and is a configuration issue on my side or if the terminal_mapping only works for opening and closing the terminal by design.
Expected Behavior
navigating out and inside to the terminal buffer should work as expected. when coming back to the terminal buffer, enter insert mode, like when opening it with mapping.
Steps To Reproduce
setup toggleterm with the default config
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: