Skip to content

feature (terminal): Toggle all terminals and better terminal management. #759

Description

@11D-Beyonder

Did you check the docs?

  • I have read all the snacks.nvim docs

Is your feature request related to a problem? Please describe.

When I have created multiple terminals, after running some commands, I want to hide some of them and open the previously hidden terminals again after some time. However, snack.terminal currently toggles only one terminal through snack.terminal.toggle().

Describe the solution you'd like

Provide something like Snaks.terminal.toggle_all(), to toggle all terminals and keep the layout.

It would be even better to copy overseer's layout. Below is a screenshot of OverseerToggle bottom.

Image

My idea is as follows:

  1. The left side is the terminal name, and the right side is the content.
  2. On the left, use vim mode to name the terminal.
  3. Move the cursor to the name of the terminal. The content of the terminal is displayed on the right. You can press ctrl+l to enter the terminal on the right, and ctrl+h to return to the left.

Describe alternatives you've considered

In VSCode, CTRL+` can toggle all terminals. In addition, toggleterm has the command ToggleTermToggleAll.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions