Skip to content

feature: Toggle() opens new terminal instead of reusing existing one after session restore #160

@paval-shlyk

Description

@paval-shlyk

Did you check the docs?

  • I have read all the docs

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

I'm using the auto-session plugin for Neovim (github.com/rmagatti/auto-session), which restores my editor session for a specific directory.
Sometimes I keep a terminal open in that session. The problem is that when I call toggle(), it always opens a new terminal – even though the one restored by auto-session is already there.

Describe the solution you'd like

It would be helpful if the toggle() function could first check whether a terminal is already present in the restored session.
If one exists, it should simply close / hide that existing terminal instead of always opening a brand new one.

Describe alternatives you've considered

For now, I manually close the old terminal by running :q.

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