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

[Feature Request] [Winbar] Better mouse interaction #329

Open
ofseed opened this issue Oct 13, 2022 · 1 comment
Open

[Feature Request] [Winbar] Better mouse interaction #329

ofseed opened this issue Oct 13, 2022 · 1 comment

Comments

@ofseed
Copy link

ofseed commented Oct 13, 2022

If I click a #2 in a winbar like this
image
it will open #2 split like this
image
But I think maybe in most situations, I just want #2 to replace #1 like this
image
Perhaps it is possible to assign different functions to the left and right mouse buttons so that the left button replaces the current terminal, and the right button opens the second terminal split.

@akinsho
Copy link
Owner

akinsho commented Oct 14, 2022

@ofseed I'd be happy to take a PR that allowed customising the functions used when clicking the winbar. The main issue is that there is currently no function in toggleterm that allows you to replace the current window terminal so that would need to be created

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