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

split-term fails to restore window layout after quickfix #6

Open
zeekhuge opened this issue Jul 8, 2017 · 6 comments
Open

split-term fails to restore window layout after quickfix #6

zeekhuge opened this issue Jul 8, 2017 · 6 comments

Comments

@zeekhuge
Copy link

zeekhuge commented Jul 8, 2017

Its simple, I have a file opened with :10Term and then I want to see the :Gstatus (fugitive plugin) . It opens up a QuickFix window and it distorts the layout .

@mklabs
Copy link
Member

mklabs commented Sep 28, 2018

Hi, I'm sorry for that. I noticed similar issues when redrawing the layout. I believe this is a rather complicated issue to fix, letting it open but I can't promise any fix soon.

@zeekhuge
Copy link
Author

I would like to help with the fix, but will need some guidance on it.
What do you think is the general/broad solution to this ?

@mklabs
Copy link
Member

mklabs commented Sep 28, 2018

@zeekhuge tbh, I frankly don't know. Firstly, maybe you could try to attach a screenshot whenever this issue arise ?

As I understand this, maybe a possible solution would be to adjust the buffer length / width to be wider when needed. Or radically different, just disallow any further splitting in a terminal window but I don't like this idea as it is rather useful. I really don't think there's an easy fix I can come up with ;) My vimscript foo is rather limited ^^

@mklabs
Copy link
Member

mklabs commented Sep 29, 2018

To iterate on that, maybe using Quickfix layout such as fugitive is probably counter intuitive with :terminal workflow. Using tools like tig or jix may be better suited ?

@zeekhuge
Copy link
Author

@mklabs : Of course thats not the best approach. In fact, I have now shifted to i3 window-manager and I do not use :terminal anymore. Instead, I have a real-terminal window open tiled with vim. (I didn't know about tig and jix ! they are cool )

Its not just about using fugitive. Even when I use buffergator, and open up its buffer-viewer, the layout gets distorted. So, the problem is actually real.

@mklabs
Copy link
Member

mklabs commented Sep 30, 2018

I get it ;) I'm now using Magit in Vim (that I recommend!)

I'm just not sure how to fix it actually. I'll try to check how and when it can be fixed. Meanwhile, can you attach please a screenshot if you can whenever it happens to you ? So that I can see how it distort the layout on your setup.

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