File tree Expand file tree Collapse file tree 5 files changed +16
-1
lines changed Expand file tree Collapse file tree 5 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 208
208
# If true, show jump-to-window keybindings in window titles.
209
209
showPanelJumps : true
210
210
211
+ # If true, show tags alognside commit summary in the commits view.
212
+ showCommitTags : true
213
+
211
214
# Nerd fonts version to use.
212
215
# One of: '2' | '3' | empty string (default)
213
216
# If empty, do not show icons.
Original file line number Diff line number Diff line change 520
520
# Deprecated: use nerdFontsVersion instead
521
521
showIcons: false
522
522
523
+ # If true, show tags alognside commit summary in the commits view.
524
+ showCommitTags: true
525
+
523
526
# Nerd fonts version to use.
524
527
# One of: '2' | '3' | empty string (default)
525
528
# If empty, do not show icons.
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ type GuiConfig struct {
137
137
ShowPanelJumps bool `yaml:"showPanelJumps"`
138
138
// Deprecated: use nerdFontsVersion instead
139
139
ShowIcons bool `yaml:"showIcons" jsonschema:"deprecated"`
140
+ // If true, show tags alognside commit summary in the commits view.
141
+ ShowCommitTags bool `yaml:"showCommitTags"`
140
142
// Nerd fonts version to use.
141
143
// One of: '2' | '3' | empty string (default)
142
144
// If empty, do not show icons.
@@ -770,6 +772,7 @@ func GetDefaultConfig() *UserConfig {
770
772
ShowNumstatInFilesView : false ,
771
773
ShowRandomTip : true ,
772
774
ShowIcons : false ,
775
+ ShowCommitTags : true ,
773
776
NerdFontsVersion : "" ,
774
777
ShowFileIcons : true ,
775
778
CommitAuthorShortLength : 2 ,
Original file line number Diff line number Diff line change @@ -396,7 +396,8 @@ func displayCommit(
396
396
tagString = style .FgMagenta .SetBold ().Sprint (commit .ExtraInfo ) + " "
397
397
}
398
398
} else {
399
- if len (commit .Tags ) > 0 {
399
+ showTags := common .UserConfig ().Gui .ShowCommitTags
400
+ if showTags && len (commit .Tags ) > 0 {
400
401
tagString = theme .DiffTerminalColor .SetBold ().Sprint (strings .Join (commit .Tags , " " )) + " "
401
402
}
402
403
Original file line number Diff line number Diff line change 604
604
"description" : " Deprecated: use nerdFontsVersion instead" ,
605
605
"default" : false
606
606
},
607
+ "showCommitTags" : {
608
+ "type" : " boolean" ,
609
+ "description" : " If true, show tags alognside commit summary in the commits view." ,
610
+ "default" : true
611
+ },
607
612
"nerdFontsVersion" : {
608
613
"type" : " string" ,
609
614
"enum" : [
You can’t perform that action at this time.
0 commit comments