Custom status bar info
Custom status bar info
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
Although the status bar already has basic templating capabilities, I wish that it were more customizable. (This. Is. XYplorer!)
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
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)
The existing templating feature can help you here.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.
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>"
Code: Select all
StatusBar3OnFile="<curname><curver [v*]>|<prop #Tags>"
Run this script to get a list (paste the code into the addressbar, and press RETURN)
Code: Select all
::rtfm "idh_variables.htm";
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Custom status bar info
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?
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?
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom status bar info
Fixed in next beta.
I also added a way to return the selected bytes with thousand separators (pass flag 1 as 3rd parameter in
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"
FAQ | XY News RSS | XY Twitter
Re: Custom status bar info
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'>.
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'>.
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom status bar info
Ah, one of the things I just can't say no to.
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom status bar info
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.
FAQ | XY News RSS | XY Twitter
Re: Custom status bar info
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
Makes sense...
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom status bar info
Which pattern are using for the status bar now? (I'm looking for possible ways to simplify the definitions.)
FAQ | XY News RSS | XY Twitter
Re: Custom status bar info
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>
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom status bar info
Why
<get CountSelected> | <get 'BytesSelected' '' 1>
? These are in the 2nd section of the SB anyway.FAQ | XY News RSS | XY Twitter
Re: Custom status bar info
<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?
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?
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Custom status bar info
No. It's too early for the optimization of extreme cases. Later...
FAQ | XY News RSS | XY Twitter