Icon-Shelf / icon-shelf

SVG icon manager for developers.
https://icon-shelf.github.io
MIT License
284 stars 27 forks source link

Names with brackets are not correctly displayed. #145

Open jonnybaumann opened 1 year ago

jonnybaumann commented 1 year ago

Description If you have an icon in the collection which has a bracket in one place (e.g. when copying: copy (1) ...), these are only displayed as a white square.

Temporary Solution For the moment, I just wrote a script which deletes all brackets from all file names. It was created for the case where all collections are in the same directory.

# Get a list of all the directories in the current directory
$directories = Get-ChildItem -Directory
$location = Get-Location
# Loop through the list of directories
foreach ($directoryin $directories ) {
    Set-Location $directory.Name
#Get a list of all the files in the current directory
    $files = Get-ChildItem
#Loop through the list of files
    foreach ($file in $files) {
        # Get the current file name and remove any parentheses
        $newName = $file.Name -replace "\(|\)", ""

        # Rename the file
        Rename-Item $file.Name $newName
    }
    Set-Location $location
}

Screenshots image

MrRobz commented 1 year ago

interesting. What OS are you using @jonnybaumann Windows, Mac or Linux ?

jonnybaumann commented 1 year ago

I use Windows 10 20H2