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: Auto-close magit buffer/window on clean state #132

Closed
sebastianst opened this issue Apr 6, 2017 · 3 comments
Closed

Feature: Auto-close magit buffer/window on clean state #132

sebastianst opened this issue Apr 6, 2017 · 3 comments

Comments

@sebastianst
Copy link

It would be great to have an option to let Magit automatically close its buffer or window if, after a commit, the repo state is clean, i.e. there are no more diffs.
If magit was opened with :Magit, it should close its window, if it was opened with :MagitOnly, it should wipe the buffer and show the previous buffer in the same window.

BTW, this also relates to a request regarding the q shortcut in a magit buffer: If this buffer was opened with :MagitOnly, it currently closes the window. Instead, it should behave like said before and show the previous buffer instead of closing the window.

@jreybert
Copy link
Owner

jreybert commented Apr 7, 2017

Thanks for your ticket, I really like such clear improvement request 👍 .

I agree with both requests, I'll do it when I find some time.

@jreybert
Copy link
Owner

I splitted your issue in a sub issue. Could you please give a try to #137 ?

@jreybert jreybert added this to To do in vimagit dev board Nov 6, 2017
@jreybert
Copy link
Owner

jreybert commented Nov 6, 2017

@sebastianst could you please give a try to branch next, setting the option g:magit_auto_close to 1

@jreybert jreybert moved this from To do to Done in vimagit dev board Nov 6, 2017
@jreybert jreybert added this to the Release 1.7.3 milestone Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants