Skip to content
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] <title> #500

Closed
1 task done
dpetka2001 opened this issue Oct 14, 2023 · 1 comment
Closed
1 task done

[BUG] <title> #500

dpetka2001 opened this issue Oct 14, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@dpetka2001
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently, when opening a terminal from an existing Neovim window with either :ToggleTerm direction=vertical or :ToggleTerm direction=horizontal the terminal open correctly either vertically or horizontally. When you open a terminal in a tab with :ToggleTerm direction=tab and then try to spawn 2 different terminals horizontally and vertically, the behavior is inverted. So, in the new tab with already opened terminal, if you do :2ToggleTerm direction=horizontal it creates a vertical terminal and :3ToggleTerm direction=vertical creates a horizontal terminal. I'm not sure if this is intended behavior or not.

Expected Behavior

When opening the first terminal in a tabpage, the subsequent spawned terminals should conform to the direction used by the user.

Steps To Reproduce

  1. nvim test.lua
  2. :ToggleTerm direction=tab
  3. :2ToggleTerm direction=vertical opens terminal below
  4. :3ToggleTerm direction=horizontal opens terminal on the right
    So no1 terminal is on the left, no2 terminal is below no1 and no3 opens vertically next to no2.
    The correct order I believe should be no1 on the left, no2 on the right of no1 and no3 below no2.

Environment

- OS: Linux Mint 21.1
- neovim version: v0.10.0-dev-4eea609
- Shell: fish

Anything else?

No response

@akinsho akinsho added duplicate This issue or pull request already exists enhancement New feature or request labels Oct 18, 2023
@akinsho
Copy link
Owner

akinsho commented Oct 18, 2023

The behaviour of tab terminals does not include opening several sub terminals in that same tab especially if there is no other buffer in that window, there are a few existing issues open already based around improving the behaviour of tab terminals. Ultimately this needs input/time contributed by someone invested in this. I never use tab terminal this way and don't have a lot of time to dedicate to solving this. I'll close this as a duplicate as I believe it's essentially captured elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants