Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immediate access to tags and branches #132

Open
dlee opened this issue Apr 16, 2013 · 6 comments
Open

Immediate access to tags and branches #132

dlee opened this issue Apr 16, 2013 · 6 comments

Comments

@dlee
Copy link

dlee commented Apr 16, 2013

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.

@vivien
Copy link
Contributor

vivien commented Apr 17, 2013

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>.

@jonas
Copy link
Owner

jonas commented Feb 26, 2014

We could add :main <ref> and similarly for other views (e.g. :blame file). I personally don't use the prompt very often though.

@vivien
Copy link
Contributor

vivien commented Feb 26, 2014

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?

@Kache
Copy link

Kache commented Jul 29, 2016

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.

@jonas
Copy link
Owner

jonas commented Aug 5, 2016

@Kache
Commit 97771e1 implements a simplified :goto command which will allow you to create keybindings to go to 2nd parent and also :goto some/branch.

@Kache
Copy link

Kache commented Aug 16, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants