I want to immediately go to a tag or a branch by typing (or pasting) the name of the tag/branch.
Currently, the best way to do this is to go to the list of branches (H) and search for the branch.
It would be nice if there was a "goto" command, or just allow : to accept tag and branch names as it already does commit SHA1s.
Using : is tricky as you can easily conflict with tig built-in actions (such as :edit).
The closest I can think of is :!git log <branch_or_tag_name>.
We could add :main <ref> and similarly for other views (e.g. :blame file). I personally don't use the prompt very often though.
This idea seems nice in the first place but won't it be confusing with git commands? e.g. stash list vs. :!git stash list, etc.?
As this feature doesn't seem to be needed by many people, I would suggest @dlee to add a binding such as bind generic !git show %(prompt) or something. What do you guys think?
This would be particularly useful when doing tig --all for jumping around the tree. I've even cloned and built tig myself to incorporate the currently-unmerged #506 (support move to parent in main view).
I'm looking forward to improved browsing/navigation functionality, akin to features available in gitk:
These commands really help when browsing deeply into the commit tree.
@Kache
Commit 97771e1b166d65c4e60dd99a73db24f307e40a0d implements a simplified :goto command which will allow you to create keybindings to go to 2nd parent and also :goto some/branch.
Sweet!
It happens to conflict with #506 (go to parent of commit under cursor).
I haven't had a chance to figure out how to do do those keybindings you speak of, though. I'll see if keybindings can do the first/second parent under cursor when I do.
Most helpful comment
@Kache
Commit 97771e1b166d65c4e60dd99a73db24f307e40a0d implements a simplified
:gotocommand which will allow you to create keybindings to go to 2nd parent and also:goto some/branch.