extrawurst / gitui

Blazing 💥 fast terminal-ui for git written in rust 🦀
MIT License
18.5k stars 571 forks source link

View: default to Log view [2] #1157

Closed rht closed 2 years ago

rht commented 2 years ago

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

extrawurst commented 2 years ago

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?

sunaku commented 2 years ago

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
rht commented 2 years ago

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

extrawurst commented 2 years ago

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

rht commented 2 years ago

Whoa! Thank you for delivering.