Add Set-TerminalIconsIcon, Get-TerminalIconsGlyphs #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Get-TerminalIconsGlyphs
allows users to see the available glyph set for easier theme customization. It also allows argument completion over the set of available glyphs.Set-TerminalIconsIcon
allows users to update an existing file name, file extension, or directory name to use a different icon. It also allows users to "swap" one glyph for another in the current theme, which allows streamlined theme customization.Related Issue
Partially addresses #34 - allows users to more easily customize a theme to change icons that don't render properly in their given terminal.
Motivation and Context
Creating a new theme is somewhat challenging and requires a non-trivial amount of spelunking to figure out the right structure for the files/directories, the available set of glyphs, etc. These changes can help with that.
How Has This Been Tested?
Testing environment:
Get-TerminalIconsGlyphs
was tested locally and is also part of the argument completer for glyph parameters inSet-TerminalIconsIcon
.Set-TerminalIconsIcon
was tested locally using all parameter sets against the defaultdevblackops
theme. Argument completers were also validated.Types of changes
Checklist:
Notes:
Remove-TerminalIconsIcon
command, which could be added later. However, you can use theSet
command here to add new ones.Warning from PSScriptAnalyzer: