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

Ignore for new window #52

Open
gegoune opened this issue Sep 27, 2021 · 3 comments
Open

Ignore for new window #52

gegoune opened this issue Sep 27, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@gegoune
Copy link

gegoune commented Sep 27, 2021

Hey, hope you don't mind usage question. I have a command that does something like this:

:20split | te

With focus enabled my sized split is ignored. I do not want to disable all terminal windows but this one only (it's very short lived). Do you think there is a way of achieving right now and if you could think of some solution if not? Perhaps something like

:FocusIgnore | 20split | te

?

Thanks!

@beauwilliams
Copy link
Collaborator

That would be a great feature to have and something I wanted to add into the new resizer logic I made. It has one issue however I need to address with nvimtree.

I think perhaps a naive way would be to use a buftype. We can't use filetype obviously. Or perhaps capture the bufnr and store it and ignore it. I'll have to use the global table for that to store excluded bufnrs which might get messy.

Let me have a think..!

@beauwilliams beauwilliams added the enhancement New feature or request label Sep 27, 2021
@hexh250786313
Copy link

A great idea!

@beauwilliams
Copy link
Collaborator

I've just added the feature to disable on per window basis. However as it uses winnr, it must be set after split creation. Perhaps there is a trick that could set it without it being resized initially 6ff7636

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

No branches or pull requests

3 participants