File list color refresh

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
ARCHETYPE
Junior Member
Junior Member
Posts: 2
Joined: 2025-02-18, 17:45 UTC

File list color refresh

Post by *ARCHETYPE »

Hello,

I've configured a custom color for 'blocked' files (using Colors - tc plugin, ZoneId=3) and added a menu button to unblock files using a PowerShell script. The menu button config is a simple custom command to run PowerShell executable:

Code: Select all

COMMAND    : C:\Program Files\PowerShell\7\pwsh.exe
PARAMETERS : -WindowStyle Hidden
with the following added as a param for the menu button itself:

Code: Select all

-NoProfile -File "D:\Program Files\totalcmd\__PS57\unblock.ps1" %P
It works ('unblocks' files), but... The file list does not refresh until I change directories - files, although unblocked, are still marked in the color I configured for the blocked ones. 'Reread Source' doesn't work, I also tried keybinds related to refreshing.

I tried my Google-fu, but the only thing I found (and I'm not even sure if it's related) is this: viewtopic.php?t=79591

Anyone with similar experience could shed light on what am I missing?
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: File list color refresh

Post by *white »

Perhaps this is the answer:
ghisler(Author) wrote: 2024-11-26, 10:09 UTC Colors by file type are only applied once when reading the directory or when a new file is added. It's not constantly updated. For example, when a filter is set "not older than 1 hour" and a file then gets older than one hour, the color isn't updated immediately.

You can force a refresh (also of the colors) even when there was no change to the files with command:
cm_RereadSource 1
on a button, in the "Start" menu, in the command line, or with a user-defined hotkey.
ARCHETYPE
Junior Member
Junior Member
Posts: 2
Joined: 2025-02-18, 17:45 UTC

Re: File list color refresh

Post by *ARCHETYPE »

Sweet, thank you. I just changed the command for Reread Source default menu button to the one you posted, and now it works.

Im not sure if it's a bug or not, but the default command for that button (first one from the left) was cm_Rereadsource. With cm_RereadSource 1 it works.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6951
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: File list color refresh

Post by *Horst.Epp »

ARCHETYPE wrote: 2025-02-18, 19:05 UTC Im not sure if it's a bug or not, but the default command for that button (first one from the left) was cm_Rereadsource. With cm_RereadSource 1 it works.
It's not a bug, if you read the explanation above again.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Post Reply