Page 1 of 5

Remember calculated Folder Size within the session.

Posted: 14 Oct 2021 10:42
by Evolve
If the option "Always show folder size" is disabled, calculated folder size doesn't survive changing current location or switching the tab even if the option "Cache folder size" is enabled. Please make XY remember calculated Folder Size within the session.

xskpY98CQ5.gif

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 08:38
by Evolve
Possible implementation:

1. Make the manual calculation provide info for the cache.
2. Turn "Always show calculate folder size" into auto calculation.

21.11.02 10꞉32꞉59 draw.io.png

3. Add "Clear cache on exit" option / tweak.

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 09:06
by eil
Cache for folders size is already implemented. Configuration - Tree and List - Cache folder sizes.

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 11:18
by Evolve
eil wrote: 02 Nov 2021 09:06 Cache for folders size is already implemented. Configuration - Tree and List - Cache folder sizes.
I know that.

Clarification of the terminology:
Evolve wrote: 14 Oct 2021 10:42"Always show folder size"

Code: Select all

Configuration > General > Tree and List > List > Always show folder sizes
Evolve wrote: 14 Oct 2021 10:42"Cache folder size"

Code: Select all

Configuration > General > Tree and List > List > Cache folder sizes
Evolve wrote: 02 Nov 2021 08:38manual calculation

Code: Select all

View > Calculate Folder Size

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 11:37
by admin
The current behavior is part of the original design from v16.70.0002 - 2016-05-04 21:08:

Code: Select all

      - How to refresh the cache for certain folders: Simply use menu "View | 
        Calculate Folder Sizes" (Shift+F5). This command will refresh the cache 
        for all selected folders, or for all folders in the list if none is 
        selected.

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 12:37
by admin
I thought about it and came up with the following (next beta):

Code: Select all

    + List | Size Column Context Menu: Added command "Refresh Folder Sizes". Use 
      this command to calculate the actual folder sizes for the current list and 
      refresh the cache (if caching is enabled).
    * View | Calculate Folder Sizes: This command now pulls the folder sizes 
      from the cache, if any. To get fresh folder sizes, now use the new "Update 
      Folder Sizes" command (see above).

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 12:46
by autocart
I don't think Evolve is asking for either a folder size cache, eil, nor for how to refresh it, Don. And also not really for a manual refresh to access the cache to be "faster".

As I understand it, he wants to have manually calculated folder sizes behave like "Always show folder size for the manually calculated folders during the current session".
So far, a manual refresh is designed to be a cache refresh at the same time. But only when it has to be triggered. What Evolve is asking is that he should not have to trigger it over and over again, when switching tabs or folders. But he also does not want to "Always show folder sizes" everywhere all the time.

I must say it does make a lot of sense.

EDIT:
He wants to have to manually calculate a folder size only one time per session (even when changing tabs/folders).

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 13:35
by autocart
Evolve,
I am not sure if that would be good enough for you, but:
You could use Tools | Customize List | Show Folder Sizes for the folders where you want to see it and then save the folder view settings for these folders with "View | Folder View Settings | Save Folder View".
Then it will be shown only inside that folder. Automatically, even remembered across sessions. If you have Cache turned on, I guess, it will use it.
Inside other folders no folder sizes are shown (if you have the general setting off).

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 16:50
by Evolve
The idea is to make the manual calculation (View > Calculate Folder Size) the boss, and the auto calculation (“Always calculate folder sizes”) - its special case, triggered (or not) as described on the diagram. This way we're not losing any behavior variation currently available, there will be just more of them. The options you have ticked will be backward compatible. Whether you had both "Always show folder sizes" and "Cache folder sizes" or just "Always..." ticked, XY will behave the same way as it currently does. The difference is that "Cache..." without "Always..." will make sense.

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 17:43
by Evolve
autocart wrote: 02 Nov 2021 13:35You could use Tools | Customize List | Show Folder Sizes...
Thanks for the tip! I'm gonna try that.
admin wrote: 02 Nov 2021 12:37I thought about it and came up with the following (next beta):...
Great! Looking forward to see how it's gonna work!

Re: Remember calculated Folder Size within the session.

Posted: 02 Nov 2021 17:48
by admin
It's already available in v22.40.0202.

Re: Remember calculated Folder Size within the session.

Posted: 03 Nov 2021 07:09
by Evolve
There is already a way to get what I want (partially). So there is no need to redo the whole thing.

Re: Remember calculated Folder Size within the session.

Posted: 03 Nov 2021 08:31
by admin
So v22.40.0202 is not what you wanted? Anyway, IMO v22.40.0202 is a good improvement. "View | Calculate Folder Sizes" has always written to the cache. Now it also reads from the cache. Folks who are happy with folder size caching should also be happy with this.

BTW, I will rename this command to "Show Folder Sizes Now".

Re: Remember calculated Folder Size within the session.

Posted: 03 Nov 2021 09:33
by Evolve
What I wanted was already mostly there. It seems that I tend to find stuff out by making uml diagrams, uploading them to the forum and using the community as a search engine, rather than by just opening the app menus myself and looking around.

Re: Remember calculated Folder Size within the session.

Posted: 03 Nov 2021 09:58
by admin
Could be an efficient strategy. In this case, it resulted in an improvement that you hadn't even thought of.