You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Config.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,15 @@ gui:
43
43
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-branch-color
44
44
branchColorPatterns: {}
45
45
46
+
# Custom icons for filenames and file extensions
47
+
# See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-files-icon--color
48
+
customIcons:
49
+
# Map of filenames to icon properties (icon and color)
50
+
filenames: {}
51
+
52
+
# Map of file extensions (including the dot) to icon properties (icon and color)
53
+
extensions: {}
54
+
46
55
# The number of lines you scroll by when scrolling the main window
47
56
scrollHeight: 2
48
57
@@ -841,6 +850,27 @@ gui:
841
850
842
851
Note that the regular expressions are not implicitly anchored to the beginning/end of the branch name. If you want to do that, add leading `^` and/or trailing `$` as needed.
843
852
853
+
## Custom Files Icon & Color
854
+
855
+
You can customize the icon and color of files based on filenames or extensions:
Copy file name to clipboardExpand all lines: schema/config.json
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -263,6 +263,27 @@
263
263
"additionalProperties": false,
264
264
"type": "object"
265
265
},
266
+
"CustomIconsConfig": {
267
+
"properties": {
268
+
"filenames": {
269
+
"additionalProperties": {
270
+
"$ref": "#/$defs/IconProperties"
271
+
},
272
+
"type": "object",
273
+
"description": "Map of filenames to icon properties (icon and color)"
274
+
},
275
+
"extensions": {
276
+
"additionalProperties": {
277
+
"$ref": "#/$defs/IconProperties"
278
+
},
279
+
"type": "object",
280
+
"description": "Map of file extensions (including the dot) to icon properties (icon and color)"
281
+
}
282
+
},
283
+
"additionalProperties": false,
284
+
"type": "object",
285
+
"description": "Custom icons for filenames and file extensions\nSee https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-files-icon--color"
286
+
},
266
287
"GitConfig": {
267
288
"properties": {
268
289
"paging": {
@@ -404,6 +425,10 @@
404
425
"type": "object",
405
426
"description": "See https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-branch-color"
406
427
},
428
+
"customIcons": {
429
+
"$ref": "#/$defs/CustomIconsConfig",
430
+
"description": "Custom icons for filenames and file extensions\nSee https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#custom-files-icon--color"
431
+
},
407
432
"scrollHeight": {
408
433
"type": "integer",
409
434
"minimum": 1,
@@ -700,6 +725,18 @@
700
725
"type": "object",
701
726
"description": "Config relating to the Lazygit UI"
0 commit comments