-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Binding to throw away all (Unstaged / Untracked) changes #2063
Comments
This irreversibly throws away the changes. Fixes tpope#2063
|
But but... X is intuitive, and those commands are long to type and remember. And there is no hook at the moment to define this in my own vimrc without clobbering the normal fugitive behaviour. And, like I said in the PR, we can add a dialog asking if you are sure. You're just closing both immediately? Does that mean you don't want discussion or improvement at all? |
It's such a nonstarter I don't even know where to begin. Why are you deleting hundreds of changed files so often? Whatever you're doing sounds incredibly weird and niche. You might be the only person on the planet that wants it. Taking the safe, undoable |
I can make it safe and undoable by just treating it as if X was done on everything inside that header; this would just obviate the |
I could live with this, but ideally it would come in the form of improving the abstraction, and not more special cases.
Absolutely not. |
This reversibly throws away the changes. Fixes tpope#2063
After using it for two days, I am quite happy with it saving everything. Anything else I need to modify to get this merged? |
This irreversibly throws away the changes. Fixes tpope#2063
This irreversibly throws away the changes. Fixes tpope#2063
When I want to throw away all changes, I intuitively moved my cursor to the header 'Unstaged' and pressed 'X' but was disappointed that it did not work. Instead, we currently need to enter visual mode,
]
to the end of the paragraph and then 'X' - but it will take a long time (for example 20 seconds for about 300 files in my case) because it is saving each file.It would be nice to have a quick way to do this.
The text was updated successfully, but these errors were encountered: