vimagit icon indicating copy to clipboard operation
vimagit copied to clipboard

Stage all mapping

Open tiagoboldt opened this issue 6 years ago • 3 comments

Short description of the problem

In Stage mode, we have to individually pick the files/chunks to be staged. It is not possible to stage all changes files at once.

Suggestion for improvement: new mapping to stage all changes in all files. An alternative, if I visual select the whole Stage buffer and use the stage mapping, that all files are staged at once.

tiagoboldt avatar Jan 25 '19 09:01 tiagoboldt

That's a good idea. The main obstacle for that new feature is the mapping.

The natural mapping should be SA, for Stage All. But it would break the main mapping S, adding a pause after the lone S keypress.

Then, main mapping Stage could be SS, allowing a lot of Ssomething declination mappings. But I am quite hesitant to break the main mapping.

Fill free to add any remarks about that.

jreybert avatar Jan 28 '19 12:01 jreybert

The localleader could be used for vimagit buffer-specific mappings. localleader S-A could stage all, leaving the simple S with the behavior it has today. localleader could be used in the future to prepend additional complex mappings.

tiagoboldt avatar Jan 28 '19 12:01 tiagoboldt

Any ETA for this? I see it's being worked on on a fork.

markkuit avatar Mar 20 '20 10:03 markkuit