1

How do I navigate to the previous chunk to stage when viewing a single file in tig status mode?

What I'm looking for is the opposite to stage-next (mapped to @ by default), but there is no stage-previous that I can find.

A previous question here at StackOverflow regarding a non-existing feature functioned somewhat as a feature request, which was later filled and referenced in an answer, which I'd love to see again if applicable.

joelpet
  • 4,869
  • 3
  • 21
  • 17
  • Please use GitHub when you are quite sure this is actually a feature request. While I don't personally mind whether I get feedback from Tig users here or elsewhere, the 'format' of stackoverflow makes answering questions with 'yes, I just implemented that' somewhat questionable. – Jonas Fonseca Mar 08 '14 at 16:34
  • That's a valid point. Thank you for your reply! – joelpet Mar 10 '14 at 13:19

1 Answers1

1

As you point out there is no stage-previous. The preferred way to do this is to add a keybindings for prompt commands. Example:

bind stage 2 :?^@@
bind stage D :/^diff

Note that this is using a new feature that will be part of the upcoming release of version 2.0.

Jonas Fonseca
  • 1,811
  • 15
  • 15