Page 1 of 1

Show Icon Overlays Setting Toggle

Posted: 11 May 2009 18:49
by byates
I use the Mercurial SCM and the TortoiseHg explorer extensions. XYplorer does a great job of showing the icon overlays for tracked files. There are times, however, when I just wish to quickly browse through my files and don't want the added delay of icon overlays. I would like to make a script that toggles the "Show Icon Overlays" setting. Does anyone know how to do this?

Thanks!

Re: Show Icon Overlays Setting Toggle

Posted: 11 May 2009 19:38
by TheQwerty
Unfortunately the only way to achieve this today via scripting, requires restarting XYplorer.

Code: Select all

"Toggle Icon Overlays"
    #182; //Save All Settings

    //Toggle Overlays
    GetKey($v, "ShowIconOverlays", "Settings");
    SetKey($v XOR 1, "ShowIconOverlays", "Settings");

    #190; //Restart without Saving.
If Don adds this to the Setting() command, you could get that down to 3 lines without a restart, and if he graced us with the ability to toggle or retrieve those settings, it could be 2 or even 1.

Re: Show Icon Overlays Setting Toggle

Posted: 11 May 2009 20:27
by byates
Thanks for the quick reply and the script. I will add a feature request to Don's already long list.

Thanks again.

Re: Show Icon Overlays Setting Toggle

Posted: 11 May 2009 22:05
by admin
byates wrote:Thanks for the quick reply and the script. I will add a feature request to Don's already long list.
A general functionality to change INI values on the fly is impossible because each value needs its own specific handling, and there are hundreds of values. Forget it, TheQwerty. :mrgreen:

The only hope for byates is to find more users that badly need to have "Show Icon Overlays" added to the main menu -- that's the only way to get a KS/UDC/Script/whatever for it. However, even then this looks like a lo prio wish for me... :wink:

Re: Show Icon Overlays Setting Toggle

Posted: 11 May 2009 22:08
by byates
Don't worry about this particular setting as the script that TheQwerty posted works great. The required restart is not an issue here. Having a generalized setting API would be nice though 8) .

Thanks!

Re: Show Icon Overlays Setting Toggle

Posted: 11 May 2009 22:11
by admin
byates wrote:Don't worry about this particular setting as the script that TheQwerty posted works great.
Oh yes, I definitely like this part of it:

Code: Select all

$v XOR 1
:D

Re: Show Icon Overlays Setting Toggle

Posted: 12 May 2009 01:45
by Muroph
admin wrote:The only hope for byates is to find more users that badly need to have "Show Icon Overlays" added to the main menu
i wouldn't say i need it that much, but i sure miss a quick way to toggle this setting.
my situation is the opposite of byates.
i usually leave icon overlays disabled to improve speed, but i often have to turn it on to check for hardlinks or work with some files.
so an easily accessible toggle command would be really nice.