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

Avoid opening in winfixbuf windows #3135

Open
sarmong opened this issue May 23, 2024 · 2 comments
Open

Avoid opening in winfixbuf windows #3135

sarmong opened this issue May 23, 2024 · 2 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@sarmong
Copy link
Contributor

sarmong commented May 23, 2024

Is your feature request related to a problem? Please describe.
When telescope is opened from a window with winfixbuf, a file cannot be edited in that window.

Describe the solution you'd like
Check if a window that the file is going to be open in has winfixbuf then choose another window - previously selected by the user (if possible to determine).

@sarmong sarmong added the enhancement Enhancement to performance, inner workings or existent features label May 23, 2024
@jamestrew
Copy link
Contributor

Check if a window that the file is going to be open in has winfixbuf then choose another window - previously selected by the user (if possible to determine).

I think this would be kind of complicated.
Maybe a compromise would be just open the file in a new split. I think this is the behavior vim uses when trying to open something from a quickfix list but the current buffer has winfixbuf.

@sarmong
Copy link
Contributor Author

sarmong commented May 26, 2024

This seems reasonable.

One potential problem though - is there a chance it will mess up window layout? Say you have regular buffer and nvim-tree opened. You open telescope from nvim-tree. Might telescope open split shifting nvim-tree from leftmost (or rightmost) edge to the center?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

2 participants