gitui icon indicating copy to clipboard operation
gitui copied to clipboard

View: default to Log view [2]

Open rht opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Coming from tig, the first view I see when I run tig is the log and the unstaged changes as its own "commit". Would be nice if I can configure so that the default view is the Log view (the one with '2' as a shortcut).

rht avatar Mar 01 '22 05:03 rht

I am planning to store some state in a file, so when you leave gitui in the log-tab in a certain repo, it would open there again. would that solve your use-case?

extrawurst avatar Apr 24 '22 21:04 extrawurst

For me, a command line option that lets the user specify the starting tab would also suffice. Something like one of these:

gitui --view=log
gitui --tab=log
gitui --tab=2
gitui -2

sunaku avatar Aug 21 '22 16:08 sunaku

@extrawurst sorry for not replying in time. However, I rediscovered GitUI again because it was recently featured on HN: https://news.ycombinator.com/item?id=32864036.

Storing the state would solve my use-case, if indeed the state is needed to store some other info. But I always want to default to log view for all repo, where @sunaku's solution seems cleaner, or just have it configurable in a local or global config file.

rht avatar Sep 19 '22 09:09 rht

this is implemented as of 9534e4c and will be part of the next release. closing this for now. see #1338

extrawurst avatar Sep 19 '22 10:09 extrawurst

Whoa! Thank you for delivering.

rht avatar Sep 19 '22 10:09 rht