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

Toggling terminal opened by toggletasks #13

Open
timeinpixels opened this issue Dec 30, 2022 · 1 comment
Open

Toggling terminal opened by toggletasks #13

timeinpixels opened this issue Dec 30, 2022 · 1 comment

Comments

@timeinpixels
Copy link

I already use toggleterm and have a keyboard shortcut defined to toggle it on/off.
Is it possible to send the task to that specific terminal and be able to use the same shortcut to toggle it on/off?
Tried to specify "count" in the config, but where to I define the corresponding number in my current toggleterm config?

Thanks in advance

@jedrzejboczar
Copy link
Owner

You can for example use the following toggletasks.json:

{
    "tasks": [ 
        {
            "name": "Example neverending task",
            "cmd": "top",
            "count": 3
        } 
    ]
}

This will open the task in toggleterm 3. Then you can use your toggleterm shortcut for terminal 3 to open/close it. Currently there is a limitation that if toggleterm 3 is already open when spawning this task, it will open in toggleterm with different number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants