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

minor modules/git improvements through more config options #1102

Merged
merged 4 commits into from
Sep 12, 2021
Merged

minor modules/git improvements through more config options #1102

merged 4 commits into from
Sep 12, 2021

Conversation

tadeaspaule
Copy link
Contributor

@tadeaspaule tadeaspaule commented Sep 6, 2021

Added the following config fields for modules/git:

sections         []interface{} `help:"Sections to show" optional:"true"`
showModuleName   bool          `help:"Whether to show 'Git - ' before information in title" optional:"true" default:"true"`
branchInTitle    bool          `help:"Whether to show branch name in title instead of the widget body itself" optional:"true" default:"false"`
showFilesIfEmpty bool          `help:"Whether to show Changed Files section if no changed files" optional:"true" default:"true"`
lastFolderTitle  bool          `help:"Whether to show only last part of directory path instead of full path" optional:"true" default:"false"`

2021-09-06-093322_312x247_scrot

@tadeaspaule
Copy link
Contributor Author

Hi @senorprogrammer is this ok to merge?

(forgot to mention, I set the default values so that if the user doesn't change anything, everything looks as it did before this PR)

@senorprogrammer senorprogrammer merged commit 10159fe into wtfutil:master Sep 12, 2021
@senorprogrammer
Copy link
Collaborator

Yep, looks great. Merged.

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

Successfully merging this pull request may close these issues.

2 participants