jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.41k stars 606 forks source link

RFE: jump to hash #1317

Closed igalic closed 7 months ago

igalic commented 7 months ago

I would like to have a function which allows jumping directly to a diff of a specific hash. Currently, search doesn't allow to "search" for a git commit hashes.

Ideally, I could use that to navigate to a selected hash in a commit message.

krobelus commented 7 months ago

not quite what you're asking but there is :goto <SHA> in the main view; it works if the referenced commit is found in the view (may need to use % or ^ to toggle any pathspec or revspec filters)

igalic commented 7 months ago

Aye, thank you. I guess i wasn't able to find it myself in the help, because you can't search the help 😅

krobelus commented 7 months ago

after pressing h you can use / to search. But goto is not really discoverable there

igalic commented 7 months ago

yeah, the only reference i see is H :goto HEAD The :goto command itself is not documented at all.

krobelus commented 7 months ago

it's in the manual, see man tig tigrc tigmanual | less +/goto The help view is autogenerated from key bindings

igalic commented 7 months ago

thank you very much!