icon-shelf icon indicating copy to clipboard operation
icon-shelf copied to clipboard

Names with brackets are not correctly displayed.

Open jonnybaumann opened this issue 1 year ago • 2 comments

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

jonnybaumann avatar Jan 04 '23 14:01 jonnybaumann

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

MrRobz avatar Jan 04 '23 17:01 MrRobz

I use Windows 10 20H2

jonnybaumann avatar Jan 06 '23 08:01 jonnybaumann