Page 1 of 5
Custom status bar info
Posted: 17 Feb 2016 04:32
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.
Re: Custom status bar info
Posted: 17 Feb 2016 07:28
by bdeshi
Although the status bar already has basic templating capabilities, I wish that
it were more customizable.

(
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:
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)(Not all of these will be effective though)
Re: Custom status bar info
Posted: 29 Nov 2021 15:54
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
Re: Custom status bar info
Posted: 29 Nov 2021 16:52
by admin
Next beta...

Re: Custom status bar info
Posted: 29 Nov 2021 20:46
by Evolve
Nice! Thanks!
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?
Re: Custom status bar info
Posted: 30 Nov 2021 07:49
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"
Re: Custom status bar info
Posted: 03 Dec 2021 14:11
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'>.
Re: Custom status bar info
Posted: 03 Dec 2021 16:13
by admin
Ah, one of the things I just can't say no to.

Re: Custom status bar info
Posted: 03 Dec 2021 17:38
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.
Re: Custom status bar info
Posted: 03 Dec 2021 18:10
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...
Re: Custom status bar info
Posted: 03 Dec 2021 18:45
by admin
Which pattern are using for the status bar now? (I'm looking for possible ways to simplify the definitions.)
Re: Custom status bar info
Posted: 03 Dec 2021 19:26
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>
Re: Custom status bar info
Posted: 03 Dec 2021 20:04
by admin
Why <get CountSelected> | <get 'BytesSelected' '' 1>? These are in the 2nd section of the SB anyway.
Re: Custom status bar info
Posted: 03 Dec 2021 20:26
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?
Re: Custom status bar info
Posted: 03 Dec 2021 20:34
by admin
No. It's too early for the optimization of extreme cases. Later...