lsd: add support for icons.yaml
This update introduces support for icons.yaml in the lsd module, enhancing the customization options for file icons. Co-authored-by: pancho horrillo <pancho@pancho.name>
This commit is contained in:
parent
9786661d57
commit
0b8df9eeb6
3 changed files with 55 additions and 0 deletions
9
tests/modules/programs/lsd/example-icons-expected.yaml
Normal file
9
tests/modules/programs/lsd/example-icons-expected.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extension:
|
||||
go:
|
||||
hs:
|
||||
filetype:
|
||||
dir: 📂
|
||||
file: 📄
|
||||
name:
|
||||
.cargo:
|
||||
.trash:
|
||||
|
|
@ -26,6 +26,20 @@ with lib;
|
|||
large = "dark_yellow";
|
||||
};
|
||||
};
|
||||
icons = {
|
||||
name = {
|
||||
".trash" = "";
|
||||
".cargo" = "";
|
||||
};
|
||||
extension = {
|
||||
"go" = "";
|
||||
"hs" = "";
|
||||
};
|
||||
filetype = {
|
||||
"dir" = "📂";
|
||||
"file" = "📄";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.lsd = { };
|
||||
|
|
@ -33,12 +47,16 @@ with lib;
|
|||
nmt.script = ''
|
||||
assertFileExists home-files/.config/lsd/config.yaml
|
||||
assertFileExists home-files/.config/lsd/colors.yaml
|
||||
assertFileExists home-files/.config/lsd/icons.yaml
|
||||
assertFileContent \
|
||||
home-files/.config/lsd/config.yaml \
|
||||
${./example-settings-expected.yaml}
|
||||
assertFileContent \
|
||||
home-files/.config/lsd/colors.yaml \
|
||||
${./example-colors-expected.yaml}
|
||||
assertFileContent \
|
||||
home-files/.config/lsd/icons.yaml \
|
||||
${./example-icons-expected.yaml}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue