Skip to content

Conversation

@hankertrix
Copy link
Contributor

Svgz files are Gzipped compressed SVG files. Template files ending in tmpl are Chezmoi templates. Let me know if I should use different icons for these.

hankertrix added 4 commits May 8, 2025 17:46
Svgz files are Gzipped compressed SVG files. Template files ending in
tmpl are Chezmoi templates. Let me know if I should use different icons
for these.
@gegoune
Copy link
Collaborator

gegoune commented May 8, 2025

Not sure if tmpl is exclusive to Chezmoi, doubt it is.

@hankertrix
Copy link
Contributor Author

hankertrix commented May 8, 2025

Should I make it generic for template files? I think the icon is sufficiently generic, as there’s no icon for chezmoi. The colour could be changed to the colour for regular text files.

Another icon could be this: 󰘓

@alex-courtis
Copy link
Member

For svgz, could we just use the svg icon?
nf-md-svg see https://www.nerdfonts.com/cheat-sheet

Should I make it generic for template files? I think the icon is sufficiently generic, as there’s no icon for chezmoi. The colour could be changed to the colour for regular text files.

Another icon could be this: 󰘓

That icon nf-md-file_hidden is not used, however it may be more suited to a hidden file than a template.

@alex-courtis
Copy link
Member

Not sure if tmpl is exclusive to Chezmoi, doubt it is.

Should I make it generic for template files? I think the icon is sufficiently generic, as there’s no icon for chezmoi. The colour could be changed to the colour for regular text files.

Another icon could be this: 󰘓

We have a generic templ icon nf-cod-code which could be a kind of js/velocity/php template.

@gegoune could we just re-use that one?

@hankertrix
Copy link
Contributor Author

For svgz, could we just use the svg icon?

Yeap we definitely could, though not a lot of applications can open svgz directly, especially browsers. Notably, Google Chrome dropped support for it around version 72 and there’s a 25 year old bug in Firefox regarding svgz support.

We have a generic templ icon nf-cod-code which could be a kind of js/velocity/php template.

Ah I see, I can change the icon to that.

@hankertrix
Copy link
Contributor Author

Any updates on this?

@alex-courtis
Copy link
Member

Any updates on this?

Please push :)

@hankertrix
Copy link
Contributor Author

Okay I updated svgz to use the svg icons and colours and the tmpl to use templ icons and colours.

Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for your contribution!

@alex-courtis alex-courtis merged commit d360317 into nvim-tree:master May 15, 2025
5 checks passed
@hankertrix
Copy link
Contributor Author

You're welcome!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants