Steve Purcell <[email protected]> writes:

>> We could easily let 'C-u S' stage absolutely everything.
>
> Or maybe just change "S".  The current behaviour has always confused
> me.  Perhaps because of how it works right now, I find myself
> expecting "S" to stage all the changes in the current section, and so
> I keep trying to use it in the "untracked files" section, then nothing
> happens.

Hmm.  If we make 'S' context sensitive, then there are only two places
where it makes sense: in "Untracked files" and in "(Unstaged) Changes".
You would have to be careful to put point into one of these sections
always, and I like that right now, you don't need to care where point
is.  And we would have to change 'U' as well, for symmetry, and for 'U'
there is even less active space in the status buffer: only "Staged
changes".

I changed 's' a bit now: it will stage all untracked files when you hit
it on the "Untracked files" section title, similar to 'k'.

Also, 'C-u S' will stage both all untracked files and all changes to
tracked files.

I hope that works for you and Moritz.

We could also add a customization option, but I guess it would have to
be per repository to be really useful, no?  I.e., some repos are clean
and you want 'S' to stage everything in them, and some are dirty, and
you want 'S' to leave untracked files alone.

Reply via email to