Page 5 of 5

Re: Custom status bar info

Posted: 22 Dec 2021 12:33
by Evolve
The bug goes beyond disks. It spreads into files as well.
And there is another bug with the way spaces are counted in the template

Code: Select all

|s|<get CountSelected> selected <get LengthsSelected a 4 '          *'>
LsUPI325uF.gif

Re: Custom status bar info

Posted: 22 Dec 2021 13:25
by admin
1) Using the latest beta?
2) Describe the problem in words.

Re: Custom status bar info

Posted: 22 Dec 2021 13:36
by Evolve
1. Yes, the latest beta v20.60.0107
2. I add two spaces and the status bar shows 2, then I add the 3rd one and the status bar subtract one and it goes this way +2-1+2-1...

Re: Custom status bar info

Posted: 22 Dec 2021 14:05
by admin
1. Cannot reproduce the problem.
2. Yep, there is some smartness built in that removes abundant spaces.

Re: Custom status bar info

Posted: 22 Dec 2021 14:46
by Evolve
admin wrote: 22 Dec 2021 14:05Cannot reproduce the problem.
1) fresh instance
2) template: |s|<get CountSelected>
3) select 2 folders, unselect one

gQRZ1dLqaf.gif

ps:
expected: bar3 shows "1"
observed: bar3 shows "drive C: used 31,91 GB..."

Re: Custom status bar info

Posted: 22 Dec 2021 15:19
by admin
Ok, should work better next time.

Re: Custom status bar info

Posted: 22 Dec 2021 20:30
by Evolve
With the last beta v22.60.0109 the bug got fixed for files but not for disks.
The symptoms are identical: select 2 disks, then unselect one, with a template |s||d|<get FileSystem> bar3 doesn't show file system for the other disk that remains selected.
Another issue is that lasso selection doesn't trigger the disk template (it works fine for files)

W7EhcwBzgN.gif

PS.This is by no means an emergency requiring immediate fixing, just letting you know what I've found.

Re: Custom status bar info

Posted: 23 Dec 2021 13:21
by admin
Put the |s| right of the |d| to have it apply to the drives (the template is first cut by |d|, then the parser looks for any |s|, so you can have |s| on both sides of |d|):

Code: Select all

|d||s|<get FileSystem>
And I fixed something that should improve it next time.

BTW, this template will tell you which item's file system is shown:

Code: Select all

|d||s|<curitem> = <get FileSystem> - <get BytesSelected '' 1 'Selected bytes: *'>

Re: Custom status bar info

Posted: 23 Dec 2021 13:41
by Evolve
There is one last tiny thing that keeps me from being completely happy with selecting disks.
Could you please add a flag to <get UsedSpace> so that it returns 2,73 TB (98%) instead of 2,73 TB (2 999 736 483 840 bytes)?

Re: Custom status bar info

Posted: 23 Dec 2021 15:22
by admin
Makes sense. :cup:

Next beta lets you do this:

Code: Select all

|d|<get FileSystem '' '' '? = *'> | <get UsedSpace '' 8> | <get FreeSpace '' 8>
The ? is a placeholder for the polled item. Not mentioned in change log. Later...