# Question about Tig

3 messages from 2008-04-10 to 2008-04-10. Participants: Pascal Obry, Jonas Fonseca.
Thread: https://gitlist.dev/t/13051

## Pascal Obry, 2008-04-10 15:47

Subject: Question about Tig
Message-ID: <47FE3679.1020604@obry.net>
URL: https://gitlist.dev/e/47FE3679.1020604%40obry.net

```
I want to stage only some hunks and not the whole file.

The way to do this is:

    - to open the status view S
    - select a file
    - move the cursor up/down using j/k keys
    - when inside the right hunk, press 'u'

Fine. But a bit tedious. Is there a way to navigate one hunk
down/up? It would be very handy I think.

Thanks,
Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595

```

## Jonas Fonseca, 2008-04-10 17:13

Subject: Re: Question about Tig
Message-ID: <2c6b72b30804101013p576847cav28d8238f8bf0d3c2@mail.gmail.com>
URL: https://gitlist.dev/e/2c6b72b30804101013p576847cav28d8238f8bf0d3c2%40mail.gmail.com
In-Reply-To: <47FE3679.1020604@obry.net>

```
On Thu, Apr 10, 2008 at 5:47 PM, Pascal Obry <pascal@obry.net> wrote:
> I want to stage only some hunks and not the whole file.
>
>  The way to do this is:
>
>    - to open the status view S
>    - select a file
>    - move the cursor up/down using j/k keys
>    - when inside the right hunk, press 'u'
>
>  Fine. But a bit tedious. Is there a way to navigate one hunk

Currently there is no way to do this using a keybinding. I will put
it on the list of stuff to work on. This, together with the ability to
keep the position across staging 'u'pdates, will be a much needed
improvement.

For now you can search for "@@" and use that to jump one hunk
forward.

-- 
Jonas Fonseca

```

## Pascal Obry, 2008-04-10 21:25

Subject: Re: Question about Tig
Message-ID: <47FE85C7.6070109@obry.net>
URL: https://gitlist.dev/e/47FE85C7.6070109%40obry.net
In-Reply-To: <2c6b72b30804101013p576847cav28d8238f8bf0d3c2@mail.gmail.com>

```
Jonas,

> Currently there is no way to do this using a keybinding. I will put
> it on the list of stuff to work on. This, together with the ability to
> keep the position across staging 'u'pdates, will be a much needed
> improvement.

Agreed.

> For now you can search for "@@" and use that to jump one hunk
> forward.

Yes, I'll do that for the moment. Thanks.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595

```
