Skip to content

View: default to Log view [2] #1157

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

Closed
rht opened this issue Mar 1, 2022 · 5 comments
Closed

View: default to Log view [2] #1157

rht opened this issue Mar 1, 2022 · 5 comments

Comments

@rht
Copy link

rht commented Mar 1, 2022

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
Copy link
Collaborator

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
Copy link

sunaku commented Aug 21, 2022

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
Copy link
Author

rht commented Sep 19, 2022

@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
Copy link
Collaborator

extrawurst commented Sep 19, 2022

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

@rht
Copy link
Author

rht commented Sep 19, 2022

Whoa! Thank you for delivering.

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

No branches or pull requests

3 participants