Re: [PATCH] add-interactive: shortcut to add hunk and quit
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- May 19, 2011, 10:16 UTC
- Message-ID
- <201105191216.51709.trast@student.ethz.ch>
- In-Reply-To
- <7vr57wc9ja.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
>
> I think "single-key" was a poorly designed attempt to improve productivity
> the ("y" <RET>)*5 into "y"*5Actually for me it more often is
y RET n RET *think* y RET s RET n RET ...
Show 7 quoted lines
> while sacrificing the safety net when you > are trying to pick and decide one by one (like the accident Thomas had > recently during "checkout -p"). If I can say "5y", think for half a second > to make sure I typed what I meant, and <RET>, to apply 5 upcoming hunks in > one go, I think I would be as efficient as the productivity optimization > the single-key offers, while still protecting me from mistakes made by fat > fingers.
There's nothing stopping us from implementing number prefixes in single-key mode, since numbers do not have any meaning yet.
After my little accident I'm also considering an (optional?) safety question at the end when in checkout -p mode, since it's inherently destructive. Of course that first requires changing the whole operation to be atomic.
--
Thomas Rast
trast@{inf,student}.ethz.ch