-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
[Feature] Allow multiple terminals opened in different tabpages #452
Comments
Hi @Bekaboo, Tab scoped terminals is definitely something that has come up before and is an interesting idea. There are definitely some things to iron out about how it would work though. The simplest solution is that if you set some value on the terminal itself and if true then toggleterm treats it as only existing in the tab it was created in and if false it opens wherever. I worry about introducing all of this complexity though as one of the first things I imagine this will introduce is a bunch of feature requests to accomodate a bunch of minutiae. I tend to lean more towards keeping the plugin as simple as possible to reduce the maintenance burden in the long run. TLDR: seems like a cool idea, not clear on all the specifics of how it would work. Don't currently have the time to build it and I'm worried it will lead to more complexity. |
OK, thanks for your response. should I close this issue? |
@Bekaboo no we can leave it open, someone might decide to pitch in since it's a popular idea I've heard before. If not maybe when things calm down at work I'll take a look at it. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
It's fine to want things but if no one else is willing to put the time or effort in or contribute since this is OSS it won't get done. For better or worse I have a life and a job and this isn't a priority for me over those. Please no more plus one comments. |
Relates #500 |
I have a solution here....you can check....In my case each terminal is working fine >> #533 (comment) |
Hi @Bekaboo! I have a related issue but I don't feel it is a bug. In the same situation as OP reports I've found that when a toggle-term terminal is currently opened in another tab, then Neovim will switch to that tab if i run How I hande it to not lose context (my current tab number) is that I use a condition in my keymap;
and based on it I set a global mark and restore it after I know OP would like to get separate terminals in the new tab - basically I have another little "hack" for that; call I feel that this described autocommand setup could be added as an optional feature into ToggleTerm itself but maybe it is to contrived of an implementation. I guess each terminal buffer should have some meta-data to say which tab they belong to. |
Hi, thanks for making this awesome plugin, it makes nvim's builtin terminal much more ergonomic and user-friendly.
Sometimes I work on 2+ projects in neovim and keeps them in multiple tabs, and it would be nice to have multiple toggleterms opened in these tabs. Currently if I open a toggleterm in one tab, switch to another tab and call 'toggleterm.toggle_command()` again, toggleterm will close the terminal in the previous tabpage instead of opening a new one in the current tabpage.
I assume this might be a config issue and can be solved by passing proper opts to toggleterm? The following is my config if that's related:
The text was updated successfully, but these errors were encountered: