Custom button to toggle Show Folder Sizes

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zoso69
Posts: 20
Joined: 25 Jul 2014 14:03

Custom button to toggle Show Folder Sizes

Post by zoso69 »

Hi there

I'm one of those folk with a huge folder that takes ages to update whenever this function is on and although I want to see subfolder sizes every so often, most of the time I don't, because I move subfolders in and out very regularly.

I have read about the ability to make this tab-specific, but all I am looking for is to create my own button/script that will disable Show Folder Sizes and if possible toggle off/on.

I also know about the right click options on Calculate Folder Sizes button but it won't work both ways i.e. turn on and off without me having to key ESC to stop the process.

Could whatever script that is associated with the ESC function be used for the button?

Many thanks for your help!

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin »

So you want a button that does the same as toggling this menu command:
View | Show Items | Show Folders in List
And on turning it off, any running calculation shall be stopped.

Sounds good to me. Gonna look for an icon...

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by bdeshi »

folder size == pizza slice !?

Got a crazy programmer here (or perhaps a lyrically-inclined one :wink: ) !

[ed]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

zoso69
Posts: 20
Joined: 25 Jul 2014 14:03

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 »

admin wrote:So you want a button that does the same as toggling this menu command:
View | Show Items | Show Folders in List
And on turning it off, any running calculation shall be stopped.

Sounds good to me. Gonna look for an icon...
Hmm, not really, I still want to see all the folders, but like you said, any running calculation shall be stopped

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin »

Press ESC, easy.

zoso69
Posts: 20
Joined: 25 Jul 2014 14:03

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 »

admin wrote:Press ESC, easy.
Yes I know that but it's so annoying every time I key the Back button and it starts calculating again.

If I could just disable it with a button that's all I want to do.

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Custom button to toggle Show Folder Sizes

Post by Enternal »

Don, I don't get it. A pizza icon? You have coffee in XYplorer and now pizza. Where's the tea, beer, and bratwurst?!

Joking aside, I think one day it would be nice to have a way to temporarily cache folder sizes without having to rely on scripting. Basically making it built-in.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin »

zoso69 wrote:
admin wrote:Press ESC, easy.
Yes I know that but it's so annoying every time I key the Back button and it starts calculating again.

If I could just disable it with a button that's all I want to do.
You want a button that stops any current and future calculation but leave the current folder size values vsible in the list?

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin »

Enternal wrote:Joking aside, I think one day it would be nice to have a way to temporarily cache folder sizes without having to rely on scripting. Basically making it built-in.
Okay, let me think...
- we need a setting to "Enable Folder Size Caching"
- we need a command to refresh the folder sizes for the current view (if we want fresh values)
EDIT: #487 View | Calculate Folder Sizes (Shift+F5) -- serves well here!
- we maybe need a command to reset the whole folder size cache
- might make sense to color the cached sizes in the list to show they are not live (might need a way to customize that color)
- by "temporarily" you mean during the session? I could also make it across sessions (new file foldersizes.dat)

Anything else?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Custom button to toggle Show Folder Sizes

Post by highend »

- we need a command to refresh the folder sizes for the current view (if we want fresh values)
Menu + sc()
new file foldersizes.dat
Don't forget to make it plain text :)
One of my scripts helped you out? Please donate via Paypal

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Custom button to toggle Show Folder Sizes

Post by Enternal »

^ What highend said :)

But yeah, by "temporarily" I meant per session. I would not mind if it is across sessions too as long as it's not hard to implement :biggrin:

zoso69
Posts: 20
Joined: 25 Jul 2014 14:03

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 »

Just noticed you've added it to the beta - thanks ever so much for doing that!

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Custom button to toggle Show Folder Sizes

Post by Enternal »

Code: Select all

v16.70.0002 - 2016-05-04 21:08
    + Folder Size Caching
XYplorer Caches The Best Features!
Gotta Cache Em' All!
:biggrin:
Honeyview_Pokeball.png
Honeyview_Pokeball.png (10.49 KiB) Viewed 3950 times
Does this deserve a toolbar button or a place in the top menus for easy access?

zoso69
Posts: 20
Joined: 25 Jul 2014 14:03

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 »

Folder size caching works beautifully - most useful when moving back and forward, no more recalculating unless I want to!

I agree re button, nice icon ;-)

Thanks ever so much.

pat55
Posts: 287
Joined: 15 Mar 2016 22:27

Re: Custom button to toggle Show Folder Sizes

Post by pat55 »

I like to have the current folder size AND the Branch view size displayed and clearly labeled AT ALL TIMES.
That is number of files - bytes and same info for hidden files.

As for drive size info and GB free - that is pure un-needed drivel that serves no real purpose.
We all hopefully know where we are and how much memory is involved. (We are not M$ so why deal in useless info)

Knowing about the current folder and branch may help catching errors.
pat

Post Reply