Custom status bar info

Features wanted...
admin
Site Admin
Posts: 66097
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom status bar info

Post by admin »

1) Confirmed and fixed.

2) Works here. It might depend on the template. What is yours? (Maybe I misunderstood, but if there is no template then no effect can be seen, of course.)

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Custom status bar info

Post by jupe »

1) Thanks, that was nice to have tracked down. :P

2) If you load fresh; there is a default template right?, if you run that command I mentioned (or even statusbartemplate(, 1)) before opening the config dialog, nothing happens. If you then subsequently open config and close it with no changes, not even switching config pages, then the template kicks in, anyway its no big issue, I was just mentioning it as an observation.

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

Re: Custom status bar info

Post by admin »

Ah, the default template -- facepalm. Yeah, confirmed. Guess I will fix it now... :twisted:

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

There seem to be a bug with this option:

Code: Select all

Configuration | General | Tree and List | List | Select last used subfolder
1. Open This PC
2. Select a Disk, Status Bar shows it's name letter
3. Open the disk and then go back to This PC
4. The disk gets auto selected but status bar ignores special rules for This PC and runs the template

PS. Here is my template BTW:

Code: Select all

|s|<get CountSelected>  |  <get 'BytesSelected' '' 1><get LengthsSelected a 6 '  |  *  '>
The status bar shows me this when I manually select disk C:\
21.12.19 18꞉58꞉39 XYplorer.png
When it gets auto selected the status bar shows this
21.12.19 18꞉59꞉00 XYplorer.png
PPS. Actually... I remember you agreed that This PC should obey template, so the manual selection is bugged, not the auto one.
Either way it should work one way or another, not both. If you end up deciding to go back and show just a Disk name letter overriding template, can you add Used Space to it cause it's nowhere shown, only Free Space and Total Size.
You do not have the required permissions to view the files attached to this post.
Last edited by Evolve on 20 Dec 2021 10:56, edited 1 time in total.

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

Seem to be even more bugged...

byAEt5GWbw.gif
You do not have the required permissions to view the files attached to this post.

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

Re: Custom status bar info

Post by admin »

Will work better in next beta.

For used space you can use <get UsedSpace '' 1 ' | * '>.
In the next beta it supports thousand separators like this: <get UsedSpace '' 2 ' | * '> (flag 2).

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

Thank you for another quick fix, now it works as expected. Unfortunately, I just realized that I definitely was wrong. There should be special rules for selected disks in This PC. I was just unsatisfied that it only showed a disk letter, but the reality is that 1) template made for files doesn't make sense for disks and 2) disks don't have much to show anyway. So a better way would be to ignore template and just show all the possible missing info directly.

original.png
bad_idea.png
better_idea.png
You do not have the required permissions to view the files attached to this post.

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

Re: Custom status bar info

Post by admin »

I agree it should not use the template that's meant for files.

But there might be different opinions about what it should do instead. Maybe it should just do the same it does in a normal folder when nothing is selected.

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

multiple_selected.png
none_selected.png
PS: "none selected" is already OK, it shows all the info and Free Space even twice, why btw? :)

PPS. How about moving free % to the left one and getting rid of the duplicate?
none_selected_less_confusion.png
Same inside disks
inside_disk_current.png
inside_disk_suggestion.png
My concern here is not even status bar space it takes but unnecessary confusion it causes.
You do not have the required permissions to view the files attached to this post.

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

Re: Custom status bar info

Post by admin »

jupe wrote: 09 Dec 2021 22:53 Recently I have noticed my first 2 statusbar sections returning no info when switching tabs sometimes, example pic below, so far has only happened on external drives, FYI I don't have Custom SB enabled.
I think I found that bug. It happened when switching tabs that had the same number of items. Fixed now.

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

My another subjective opinion is that the inconsistency of the format in the status bar is also confusing:
bar2 format is free: <number>, capacity: <number>
whereas for bar3 it's the opposite: <number> used, <number> free
Why don't just pick one and follow it?
And the density of the data doesn't help much. "<TAB>" would be a better separator here than ", "

mess.png
clear.png
You do not have the required permissions to view the files attached to this post.

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

Re: Custom status bar info

Post by admin »

There is some consistency in the sequence:

used - free - capacity
          free - capacity
used - free


I agree about the layout. I might replace the commas by some amount of space later.

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

Code: Select all

v22.60.0105
...
    + SC get got a new named argument "FileSystem". Returns the file system 
      (NTFS, FAT32 ...) for the current or the specified path.
      Syntax: get("FileSystem", [path])
      Examples:
        echo <get FileSystem>;
        echo <get FileSystem J:>;
        echo <get FileSystem "J:\rocky 3.jpg">;
        echo <get FileSystem "J:\non-existing-path-or-file.foo">; //works anyway
...
    * Custom Status Bar Info: Now the drives support for CSBI is limited to the 
      presense of a new switch: Everything right of |d| is used for drives, 
      everything left of it for other items. If |d| is missing then the template 
      is not used for drives at all.
      Examples:
        |s|<get BytesSelected '' 3>|d|<get FileSystem>
        |s|<get BytesSelected '' 3>|d|* - <get FileSystem>
        |d|* (<get FileSystem>) |s|<get BytesSelected '' 3>
    ! Status Bar: It was not always updated when switching tabs that had the 
      same number of items in the file list. Fixed.
...
Separate templates for disks and files, Wow! This is for sure the best way to do it. Can’t believe all I wanted to see is already available, even a file system! BTW, I’ve finally figured out why there are two "Free Spaces", they are actually different...

One sudden thing. The bug you fixed yesterday has risen from the dead. The one where I selected two disks, then unselected one and the status bar thought nothing was selected.

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

Re: Custom status bar info

Post by admin »

Not sure what you mean. I fixed so many little things yesterday... :whistle:

Evolve
Posts: 354
Joined: 27 Feb 2020 09:48

Re: Custom status bar info

Post by Evolve »

It's actually a little bit different

Z9D1peUFBJ.gif
You do not have the required permissions to view the files attached to this post.

Post Reply