Page 1 of 1
Custom button to toggle Show Folder Sizes
Posted: 24 Apr 2016 14:27
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!
Re: Custom button to toggle Show Folder Sizes
Posted: 25 Apr 2016 14:09
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...
Re: Custom button to toggle Show Folder Sizes
Posted: 25 Apr 2016 19:37
by bdeshi
folder size == pizza slice !?
Got a crazy programmer here (or perhaps a lyrically-inclined one

) !
[ed]
Re: Custom button to toggle Show Folder Sizes
Posted: 25 Apr 2016 19:49
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
Re: Custom button to toggle Show Folder Sizes
Posted: 25 Apr 2016 20:03
by admin
Press ESC, easy.
Re: Custom button to toggle Show Folder Sizes
Posted: 25 Apr 2016 20:31
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.
Re: Custom button to toggle Show Folder Sizes
Posted: 26 Apr 2016 07:45
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.
Re: Custom button to toggle Show Folder Sizes
Posted: 26 Apr 2016 08:52
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?
Re: Custom button to toggle Show Folder Sizes
Posted: 26 Apr 2016 09:05
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?
Re: Custom button to toggle Show Folder Sizes
Posted: 26 Apr 2016 09:43
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

Re: Custom button to toggle Show Folder Sizes
Posted: 26 Apr 2016 19:14
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

Re: Custom button to toggle Show Folder Sizes
Posted: 01 May 2016 02:16
by zoso69
Just noticed you've added it to the beta - thanks ever so much for doing that!
Re: Custom button to toggle Show Folder Sizes
Posted: 04 May 2016 21:42
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!
Honeyview_Pokeball.png
Does this deserve a toolbar button or a place in the top menus for easy access?
Re: Custom button to toggle Show Folder Sizes
Posted: 04 May 2016 22:56
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.
Re: Custom button to toggle Show Folder Sizes
Posted: 05 May 2016 18:56
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