Add Set-TerminalIconsIcon, Get-TerminalIconsGlyphs#35
Add Set-TerminalIconsIcon, Get-TerminalIconsGlyphs#35devblackops merged 1 commit intodevblackops:masterfrom
Conversation
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.
|
Seems the build is breaking with:
The code in question is: $userThemeData.Themes.Color.GetEnumerator().ForEach({
$colorThemePath = Join-Path $userThemePath "$($_.Name)_color.xml"
$_.Value | Export-Clixml -Path $colorThemePath -Force
})...which isn't something I messed with. It may relate to another thing I noticed when I first installed the module, which is that when I imported the module to start with I got a bunch of errors; after restarting PowerShell it was OK. I loosely guessed it had something to do with writing some files out to a folder during module install. Any ideas on how I can fix it? |
|
@tillig I think this looks good as-is. I don't have a pattern for testing theme changes (tests need to be improved in general). I can see a |
Description
Get-TerminalIconsGlyphsallows users to see the available glyph set for easier theme customization. It also allows argument completion over the set of available glyphs.Set-TerminalIconsIconallows 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-TerminalIconsGlyphswas tested locally and is also part of the argument completer for glyph parameters inSet-TerminalIconsIcon.Set-TerminalIconsIconwas tested locally using all parameter sets against the defaultdevblackopstheme. Argument completers were also validated.Types of changes
Checklist:
Notes:
Remove-TerminalIconsIconcommand, which could be added later. However, you can use theSetcommand here to add new ones.Warning from PSScriptAnalyzer: