Custom status bar info

Features wanted...
Megalith
Posts: 75
Joined: 24 Jan 2015 16:53

Custom status bar info

Post by Megalith »

There was a thread made about this back in 2007 but I do not think anything came of it. It would be great if we could customize what kind of information the status bar could show, beyond item count, space, selected items, and file name. Personally, I would like the status bar to show what tags are associated with a folder without having to expand it and select the relevant tab.

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

Re: Custom status bar info

Post by bdeshi »

Although the status bar already has basic templating capabilities, I wish that it were more customizable. :tup: (This. Is. XYplorer!)

Megalith wrote:I would like the status bar to show what tags are associated with a folder without having to expand it and select the relevant tab.
The existing templating feature can help you here.
You want to modify the 'StatusBar3OnFile' tweak key. [How to tweak?]
Set it's value like this to see tags only:

Code: Select all

StatusBar3OnFile="<prop #Tags>"
Or this, to append tags to the default info

Code: Select all

StatusBar3OnFile="<curname><curver [v*]>|<prop #Tags>"
There are a lot more variables you can use here.
Run this script to get a list (paste the code into the addressbar, and press RETURN)

Code: Select all

::rtfm "idh_variables.htm";
(Not all of these will be effective though)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

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

Re: Custom status bar info

Post by Evolve »

The limitation is that
admin wrote: 29 Nov 2021 10:25 Bar3 is only updated when the current file changes...
StatusBar3OnFile tweak would become much more useful with another tweak that changes the event updating StatusBar3 and making it behave like Bar2 and Bar1:
StatusBar3UpdateOnSelection: 1

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

Re: Custom status bar info

Post by admin »

Next beta... :)

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

Re: Custom status bar info

Post by Evolve »

Nice! Thanks! :tup:
One sudden thing. Whatever I assign to StatusBar3OnFile works everywhere except for This PC where it keeps showing "all local discs: ... TB used, ... GB free..." or a selected drive letter which I believe to be a bug cause even the Network obeys to do what the tweak says, so This PC should obey too, right?

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

Re: Custom status bar info

Post by admin »

Fixed in next beta.

I also added a way to return the selected bytes with thousand separators (pass flag 1 as 3rd parameter in <get 'BytesSelected' '' 1>):

Code: Select all

StatusBar3OnFile="<get 'CountSelected'> selected, <get 'BytesSelected' '' 1> bytes"

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

Re: Custom status bar info

Post by Evolve »

One last missing thing that I would wanna see really badly is the sum for the durations of selected media files.
The closest thing I could get is <prop '*Length'>, unfortunately, it only shows it for the current file.
Could you please add something like <get 'LengthSelected'>.

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

Re: Custom status bar info

Post by admin »

Ah, one of the things I just can't say no to. :cup:

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

Re: Custom status bar info

Post by admin »

I think that StatusBar3UpdateOnSelection flag should be incorporated into the template because it totally depends on the template whether this flag is should be set or not. Maybe by a leading "!" or so.

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

Re: Custom status bar info

Post by Evolve »

Thank you so much! You just made my day.

Code: Select all

v22.50.0209 - 2021-12-03 17:14
    + Configuration | Colors and Styles | Templates: Added section "Status Bar" 
      with a text box where you can define a template for the 3rd section of the 
      status bar.
      FYI, the tweak StatusBar3OnFile from v7.20.0010 - 2008-06-18 12:22 (!) is 
      hereby raised to UI. It just became too good to be hidden in the dark.
    + SC get(bytesselected): Now (well, since 20211130) you can pass a flag to 
      show thousand separators in the return:
      Syntax: get("BytesSelected", [pane=a], [flags])
        flags: 1=show thousand separators
    + SC get got a new named argument "LengthsSelected". Returns the sum for the 
      durations of all selected media files.
      Syntax: get("LengthsSelected", [pane=a], [flags])
        flags: 1=show milliseconds
        return: Sum of durations in format [hh:]nn:ss[.fff].
      Remark:
        It's not necessary that a Length column is shown. The values are pulled 
        directly from the files, not from a column.
      Examples:
        text <get 'LengthsSelected'>;       //hide msecs
        text <get 'LengthsSelected' '' 1>;  //show msecs
admin wrote: 03 Dec 2021 17:38 I think that StatusBar3UpdateOnSelection flag should be incorporated into the template because it totally depends on the template whether this flag is should be set or not. Maybe by a leading "!" or so.
Makes sense...

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

Re: Custom status bar info

Post by admin »

Which pattern are using for the status bar now? (I'm looking for possible ways to simplify the definitions.)

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

Re: Custom status bar info

Post by Evolve »

My pattern is pretty much the same, I just got rid of all the words cause I kinda know what they are anyway and want as much space for LFB as possible:

Code: Select all

<get CountSelected> | <get 'BytesSelected' '' 1> | <get LengthsSelected> 

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

Re: Custom status bar info

Post by admin »

Why <get CountSelected> | <get 'BytesSelected' '' 1>? These are in the 2nd section of the SB anyway.

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

Re: Custom status bar info

Post by Evolve »

<get CountSelected> is different than the one in the 2nd bar, this one doesn't count subfolders when "Show Folder Sizes" is enabled, which is exactly what I need sometimes. <get 'BytesSelected' '' 1> - because I can get rid of the word "bytes" :) and the bar2 seems just cleaner without it.
BTW, I just found that with <get LengthsSelected> the selection in the List is lagging when I select lots of files. It seems like it's waiting for the calculation. Can you make it render the List selection first, and the number on the bar3 when the calculation is ready?

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

Re: Custom status bar info

Post by admin »

No. It's too early for the optimization of extreme cases. Later...

Post Reply