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: 5
Joined: 25 Jul 2014 14:03

Custom button to toggle Show Folder Sizes

Post by zoso69 » 24 Apr 2016 14:27

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: 48325
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin » 25 Apr 2016 14:09

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...

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

Re: Custom button to toggle Show Folder Sizes

Post by SammaySarkar » 25 Apr 2016 19:37

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: 5
Joined: 25 Jul 2014 14:03

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 » 25 Apr 2016 19:49

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: 48325
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin » 25 Apr 2016 20:03

Press ESC, easy.

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

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 » 25 Apr 2016 20:31

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: 1171
Joined: 10 Jan 2012 18:26

Re: Custom button to toggle Show Folder Sizes

Post by Enternal » 26 Apr 2016 07:45

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: 48325
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin » 26 Apr 2016 08:52

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: 48325
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Custom button to toggle Show Folder Sizes

Post by admin » 26 Apr 2016 09:05

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: 8584
Joined: 06 Feb 2011 00:33

Re: Custom button to toggle Show Folder Sizes

Post by highend » 26 Apr 2016 09:43

- 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 or highend (at) web (dot) de

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

Re: Custom button to toggle Show Folder Sizes

Post by Enternal » 26 Apr 2016 19:14

^ 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: 5
Joined: 25 Jul 2014 14:03

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 » 01 May 2016 02:16

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

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

Re: Custom button to toggle Show Folder Sizes

Post by Enternal » 04 May 2016 21:42

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 1414 times
Does this deserve a toolbar button or a place in the top menus for easy access?

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

Re: Custom button to toggle Show Folder Sizes

Post by zoso69 » 04 May 2016 22:56

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 » 05 May 2016 18:56

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