Status Bar Format

Discussion related to "Everything" 1.5 Alpha.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

Thanks!
There is currently only one problem if the search term folders: is entered.
That was also the case above, otherwise everything would be perfect.

Code: Select all

/statusbar_selection_format=Selected [if:!$folder-result-count:,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] files,[if:!$file-result-count:,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] folders,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] items ([TEXT:$file-selection-count:,"#,###"] of [TEXT:$file-result-count:,"#,###"] files, [TEXT:$folder-selection-count:,"#,###"] of [TEXT:$folder-result-count:,"#,###"] folders)]] | Size: [FORMATSIZE:$total-selection-size:,0] of [FORMATSIZE:$total-result-size:,0]
- Search query for folders: folders:
  Selected 3 of 115 589 folders | Size: 69,06 KB of            ... 616,05 GB ist missing ... <- not possible, see below...
- Search query for files: files:
  Selected 3 of 481 075 files | Size: 19,77 KB of 616,05 GB
Last edited by tuska on Sat May 27, 2023 8:46 am, edited 1 time in total.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Because Everything does not include folder sizes in the total result size, I recommend the following format:

Code: Select all

Selected [if:!$folder-result-count:,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] files,[if:!$file-result-count:,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] folders,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] items ([TEXT:$file-selection-count:,"#,###"] of [TEXT:$file-result-count:,"#,###"] files, [TEXT:$folder-selection-count:,"#,###"] of [TEXT:$folder-result-count:,"#,###"] folders)]] | Size: [FORMATSIZE:$total-selection-size:,0][iflen:[FORMATSIZE:$total-result-size:,0], of [FORMATSIZE:$total-result-size:,0]]
- Search query for folders: folders:
Selected 3 of 115 589 folders | Size: 69,06 KB
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

Thanks, then we have these results - multiple items selected (one of several variants ... see above):

- Copy the CODE below, paste it into the Everything search box and press ENTER.
  - If successful, you should see "statusbar_selection_format=..." in the status bar for a few seconds.
  - If successful, you should see "statusbar_total_size=1" in the status bar for a few seconds.

Code: Select all

/statusbar_selection_format=Selected [if:!$folder-result-count:,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] files,[if:!$file-result-count:,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] folders,[if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] items ([TEXT:$file-selection-count:,"#,###"] of [TEXT:$file-result-count:,"#,###"] files, [TEXT:$folder-selection-count:,"#,###"] of [TEXT:$folder-result-count:,"#,###"] folders)]] | Size: [FORMATSIZE:$total-selection-size:,0][if:[len:[FORMATSIZE:$total-result-size:,0]], of [FORMATSIZE:$total-result-size:,0]]

Code: Select all

/statusbar_total_size=1
- Search query for folders: blank
  Selected 3 of 596 686 items (0 of 481 097 files, 3 of 115 589 folders) | Size: 67,98 KB of 616,06 GB
- Search query for files: blank
  Selected 3 of 596 686 items (3 of 481 097 files, 0 of 115 589 folders) | Size: 58,26 KB of 616,06 GB

- Search query for folders: folders:
  Selected 3 of 115 589 folders | Size: 69,06 KB
- Search query for files: files:
  Selected 3 of 481 097 files | Size: 19,77 KB of 616,06 GB

Thanks for the information and thank you again for the prompt support! :)

⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺

statusbar_selected_item_format - used when there's a single item selected - example:

Code: Select all

/statusbar_selected_item_format=1 item (1 of [if:$folder-selection-count:,[text:$folder-result-count:,"#,###"] folders,[text:$file-result-count:,"#,###"] files])[if:$file-selection-count:," | Extension: "$extension:] | Size:$s | Date Modified: $m | Date Created: $c | Date Accessed: $a | Path: $p

Code: Select all

1 item (1 of 3 files) | Extension: exe | Size:4,57 MB | Date Modified: 26.05.2023 14:34 | Date Created: 09.05.2023 12:59 | Date Accessed: 26.05.2023 13:26 | Path: C:\Everything ... 4,57 MB
1 item (1 of 95 370 folders) | Size:7,97 GB | Date Modified: 27.05.2023 10:22 | Date Created: 21.06.2022 18:08 | Date Accessed: 26.05.2023 13:26 | Path: C: ... 7,97 GB
⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺

statusbar_format - used when there's no selection.

Code: Select all

/statusbar_format=#if:<#result-count:==1,1 item,#TEXT:<#result-count:,#,###> items> (#TEXT:<#file-result-count:,#,###> files, #TEXT:<#folder-result-count:,#,###> folders)

Code: Select all

596 694 items (481 105 files, 115 589 folders)
______________________________________________________
Windows 11 Pro (x64) Version 22H2 (OS build Build 22621.1778)
'Everything' 1.5.0.1347a (x64)
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Everything 1.5.0.1348a removes the total size from the left as this feels too busy.

The total size is now shown on the right.

added format code: $y = formatted total result size.

fixed an issue with attributes not being gathered when used in the statusbar.



The default formats are now:
statusbar_format=$o items
statusbar_selected_item_format=$o | Size: $s | Date Modified: $m | Path: $p
statusbar_selection_format=$o items | $x items selected
JTB3
Posts: 39
Joined: Fri Apr 08, 2016 7:15 pm

Re: Status Bar Format

Post by JTB3 »

Hi David,
I hope you are doing well. I'm trying to modify my custom 'Single-Selection' Status Bar code to display the 'URL' Metadata property when a .URL shortcut file is individually selected. I was able to 1st display this URL metadata as a column, so I then proceeded to append the following code at the end of my '/statusbar_selected_item_format='
  • #IF:<#URL:, | #URL,>
However, this code does not work and the preprocessor does not seem to recognize 'URL' as a property. Did I miss something silly here? Can you please guide me as to how I need to reference/format the 'URL' Metadata property within an #IF statement and get it to display properly in the status bar? I'm trusting that this is possible!

Many Thanks, -JT 🔆
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

I hope you are well.

Please try $url: instead of #url:

Code: Select all

[iflen:$url:, | $url:]
JTB3
Posts: 39
Joined: Fri Apr 08, 2016 7:15 pm

Re: Status Bar Format

Post by JTB3 »

void wrote: Tue Jul 11, 2023 12:26 pm I hope you are well.
Please try $url: instead of #url:

Code: Select all

[iflen:$url:, | $url:]
Thanks so much, David! Worked like a champ... :D
Here's the final code snippet I used to cleanly parse out just the URL domain name and enclose it in brackets:

Code: Select all

[IfLen:$url:, <[SubStr:$url:,1,[Eval:[InStr:$url:,/,[Eval:[InStr:$url:,//]+2]]-1]]>]
With much appreciation! -JT ✨
Thy Grand Voidinesss
Posts: 697
Joined: Wed Jun 01, 2022 5:01 pm

Re: Status Bar Format

Post by Thy Grand Voidinesss »

void wrote: Wed May 31, 2023 5:51 am Everything 1.5.0.1348a removes the total size from the left as this feels too busy.

The total size is now shown on the right.
[...]
I would like a check box option for making it possible to hide this info

I prefer the have it [manually added by me] at the end of my formatted Status Bar - and thus those numbers are redundant to me and thus also cluttering
Last edited by Thy Grand Voidinesss on Sat Jul 15, 2023 1:16 pm, edited 1 time in total.
Thy Grand Voidinesss
Posts: 697
Joined: Wed Jun 01, 2022 5:01 pm

Re: Status Bar Format

Post by Thy Grand Voidinesss »

void wrote: Wed May 31, 2023 5:51 am [...]
added format code: $y = formatted total result size.
Great

I can use it to replace my old

Code: Select all

[formatsize:$total-result-size:,0]
part

void wrote: Wed May 31, 2023 5:51 am The default formats are now:
statusbar_format=$o items
statusbar_selected_item_format=$o | Size: $s | Date Modified: $m | Path: $p
statusbar_selection_format=$o items | $x items selected
Is there some comprehensive list of those updates?

Something like
A ---> B
C ---> H
Z ---> Z1
i.e. with an entry like
[formatsize:$total-result-size:,0 ---> $y
as it is hard to keep a track of them?

Or is it unnecessary for users to have such list available for them because all of old formats will keep their functionality forever?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Changes are scattered through out this topic.
I will create a wiki on the subject when in beta.

The first post contains all the up-to-date information.

The old formats will still be supported.
enduser
Posts: 24
Joined: Mon May 02, 2022 2:34 pm

Re: Status Bar Format

Post by enduser »

the "$z" format does not work unless you enable "General -> View -> Show total size in status bar" even if the file/folder size index is enabled. This is not a huge problem as I can hide the total size in the right by setting "statusbar_total_size" to false, but this seems like a bug.
Image
w64bit
Posts: 257
Joined: Wed Jan 09, 2013 9:06 am

Re: Status Bar Format

Post by w64bit »

Maybe, these settings can be merged somehow?
show_selected_item_in_statusbar
show_size_in_statusbar
statusbar_total_size
First two seems redundant, taking into account that we already have very good statusbar $ customization.
Ralf_Reddings
Posts: 122
Joined: Fri Mar 24, 2023 4:53 pm

Re: Status Bar Format

Post by Ralf_Reddings »

Is there a bug at work here? I am using alpha
1.5.0.1379a
, I can customise the status bar for when there is no items selected with :

Code: Select all

/statusbar_format=no selection
And the string "no selection" is correctly shown, when I dont have anything selected. This is as expected.
but
/statusbar_selected_item_format
and
/statusbar_selection_format
seem to conflict. When I run the following, one at a time:

Code: Select all

/statusbar_selection_format=more than one item
/statusbar_selected_item_format=one item
"more than one item" will always show, even if I have just one item selected. Making it impossible for me define a format for when I have just one item selected.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Tools -> Options -> View -> Show selected item in statusbar must be enabled.

Otherwise, Everything will only use statusbar_selection_format.
Ralf_Reddings
Posts: 122
Joined: Fri Mar 24, 2023 4:53 pm

Re: Status Bar Format

Post by Ralf_Reddings »

Yes that did it, cheers!
Ralf_Reddings
Posts: 122
Joined: Fri Mar 24, 2023 4:53 pm

Re: Status Bar Format

Post by Ralf_Reddings »

How to print the FPS as
24
rather than
24000
on the status bar?

Code: Select all

/statusbar_selected_item_format=$frame-rate:
The above prints it as
24000
, I tried the following to get it to print as
24
:
  • /statusbar_selected_item_format=[ceiling:$frame-rate:]
    this seems to have no effect
  • /statusbar_selected_item_format=[text:ceiling:$frame-rate:]
    , this seems to print nothing to the status bar
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Please try the following:

Code: Select all

/statusbar_selected_item_format=<formatnumber:$framerate:/1000>
<formatnumber:...>
Ralf_Reddings
Posts: 122
Joined: Fri Mar 24, 2023 4:53 pm

Re: Status Bar Format

Post by Ralf_Reddings »

Yes that did it, perfect. thanks.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

Hi,

Status bar: OMIT, TEMP OMIT
Number of files (not folders) in the status bar after using the context menu for "Omit" not comprehensible.

I have a problem when using Omit via the context menu in connection with files and the display in the status bar.
A check of folders (folder:) has produced a correct result for both the context menu for "Omit" and for "Temporarily Omit".

Everything Options - 1.5.0.1383a (x64) > Advanced
context_menu_omit_results               Show
context_menu_temp_omit_results      Show

statusbar_format

Code: Select all

#if:<#result-count:==1,1 item,#TEXT:<#result-count:,#,###> items> (#TEXT:<#file-result-count:,#,###> files, #TEXT:<#folder-result-count:,#,###> folders)
statusbar_selected_item_format

Code: Select all

1 item (1 of [if:$folder-selection-count:,[text:$folder-result-count:,"#,###"] folders,[text:$file-result-count:,"#,###"] files])[if:$file-selection-count:," | Extension: "$extension:] | Size:$s | Date Modified: $m | Date Created: $c | Date Accessed: $a | Path: $f
statusbar_selection_format

Code: Select all

Selected [if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] items ([if:$file-result-count:,[if:$file-selection-count:==$file-result-count:,all,[TEXT:$file-selection-count:,"#,###"] of] [TEXT:$file-result-count:,"#,###"],no] files, [if:$folder-result-count:,[if:$folder-selection-count:==$folder-result-count:,all,[TEXT:$folder-selection-count:,"#,###"] of] [TEXT:$folder-result-count:,"#,###"],no] folders) | Size: #if:<$total-selection-size:!=$total-result-size:,#FORMATSIZE:$total-selection-size:,0 of >#FORMATSIZE:<$total-result-size:,0>#if:<$total-result-size:<=1024, (#if:<$total-selection-size:!=$total-result-size:,#TEXT:$total-selection-size:,"#,###" of >#TEXT:$total-result-size:,"#,###" bytes)>
A test showed me the following:

Tab1: files: Selected all 609 730 items (all 609 730 files, no folders) | Size: 660,35 GB
         OMIT: 2 files: D:\TomTom\-default.bmp and D:\TomTom\-default.toc
         Context menu: Omit
         files: Selected all 530 520 items (all 530 520 files, no folders) | Size: 442,71 GB
         Difference: 79208 Dateien

Tab2: files: Selected all 609 730 items (all 609 730 files, no folders) | Size: 660,35 GB
         TEMP OMIT: 2 files: D:\TomTom\-default.bmp and D:\TomTom\-default.toc
         Context menu: Temporarily Omit
         files: Selected all 609 728 items (all 609 728 files, no folders) | Size: 660,35 GB

Please check "Omit" and files regarding display in the status bar.
(A retest has also produced an incorrect result).

Thank you in advance.
____________________________________________________
Windows 11 Pro (x64) Version 23H2 (OS Build 22631.3880)
'Everything' 1.5.0.1383a (x64) - "Portable on system drive C:"
context_menu_omit_results | context_menu_temp_omit_results
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Thank you for the issue report tuska,

I am unable to reproduce the issue my end.
I see the correct number of results / selection.

Could you please repeat the process with debug logging enabled:
  • In Everything, from the Tools menu, Under the Debug submenu, click Start Debug Logging.
    ---repeat the process (select-all; select 2 files -> omit; select-all)
  • From the Tools menu, Under the Debug submenu, click Stop Debug Logging.
  • ---this will open your %TEMP%\Everything Debug Log.txt in Notepad
  • Could you please send this to support@voidtools.com


Please note: omitting files (right click -> Omit) will enable result omissions.
Was there anything else in your result omissions when clicking Omit?
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

2void

Thank you for your prompt support!

I have moved the file "Omit Results.csv" with approx. 30 entries to D:\TMP for testing purposes.
A retest showed the expected number of files in "Omit"!

I then took a thorough look at the "Omit Results.csv" file:
*.jpg was also saved in the file(!?)
 
2024-07-24_Omit Results.csv_.png
2024-07-24_Omit Results.csv_.png (5.17 KiB) Viewed 9912 times
 
How this entry came about, however, is beyond my knowledge
because there was no such entry in the "Search History".

After I removed *.jpg from the "Omit Results.csv" file
I get the expected number of files in "Omit"!

I am sorry for the inconvenience.

Regards,
Karl
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Thanks for checking tuska,

It's pretty easy to right click a single jpg file and click Omit extension.
I am guessing this was done accidentally in this case.

Normally, Omit extension is only shown when Index -> Enable result omissions is checked, so it shouldn't be too much of an issue.
I am guessing you have Tools -> Options -> Advanced -> context_menu_omit_results set to Show?
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

void wrote: Thu Jul 25, 2024 9:38 am It's pretty easy to right click a single jpg file and click Omit extension.
I am guessing this was done accidentally in this case.
Yes, that will have been it (simply clicked on the wrong menu item by mistake).
I have therefore now changed my settings to: "Show on Shift".
void wrote: Thu Jul 25, 2024 9:38 am Normally, Omit extension is only shown when Index -> Enable result omissions is checked, so it shouldn't be too much of an issue.
I am guessing you have Tools -> Options -> Advanced -> context_menu_omit_results set to Show?
Yes.

Thank you for the additional tips!
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

2void

Hi,
I'm sorry to say that in Everything 1.5.0.1385a (x64), some of the displays in the status bar no longer work.
(I know ... Everything 1.5.0.1384a improves the search preprocessor. ...)

statusbar_format - used when there's no selection --> 0 items (0 files, 0 folders)

Code: Select all

#if:<#result-count:==1,1 item,#TEXT:<#result-count:,#,###> items> (#TEXT:<#file-result-count:,#,###> files, #TEXT:<#folder-result-count:,#,###> folders)
statusbar_selection_format - used when there's multiple items selected --> Size: 0 Bytes

Code: Select all

Selected [if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] items ([if:$file-result-count:,[if:$file-selection-count:==$file-result-count:,all,[TEXT:$file-selection-count:,"#,###"] of] [TEXT:$file-result-count:,"#,###"],no] files, [if:$folder-result-count:,[if:$folder-selection-count:==$folder-result-count:,all,[TEXT:$folder-selection-count:,"#,###"] of] [TEXT:$folder-result-count:,"#,###"],no] folders) | Size: #if:<$total-selection-size:!=$total-result-size:,#FORMATSIZE:$total-selection-size:,0 of >#FORMATSIZE:<$total-result-size:,0>#if:<$total-result-size:<=1024, (#if:<$total-selection-size:!=$total-result-size:,#TEXT:$total-selection-size:,"#,###" of >#TEXT:$total-result-size:,"#,###" bytes)>
Please help.

PS:
statusbar_selected_item_format - used when there's a single item selected --> WORKS!

Code: Select all

1 item (1 of [if:$folder-selection-count:,[text:$folder-result-count:,"#,###"] folders,[text:$file-result-count:,"#,###"] files])[if:$file-selection-count:," | Extension: "$extension:] | Size:$s | Date Modified: $m | Date Created: $c | Date Accessed: $a | Path: $f
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

Everything 1.5.0.1384a improves the preprocessor.

Please use <function:...> syntax for status bar formatting.



The following variables have been added:
  • $folders-sidebar-selection: (folders sidebar selection as a semicolon (;) delimited list of filenames)
  • $directory: (folders sidebar selection as a semicolon (;) delimited list of filenames)
  • $folders-sidebar-subfolders: (search subfolders in the folder sidebar)
  • $is-unique: (an active find unique command)
  • $is-distinct: (an active find distinct command)
  • $is-not-distinct: (an active find not distinct command)
  • $sort: (current sort)
  • $sort-ascending: (current sort order)
  • $sort-match-case: (sort is case sensitive)
  • $sort-mix: (files and folders are mixed)
  • $dupe: (active find dupe properties as semicolon delimited list)
  • $query-type: (0=None; 1=Local DB; 2=File List; 3=ETP)
  • $search:
  • $version:
  • $instance:
  • $filelist-filename:
  • $filter:
  • $view: (0=details;1=thumbnails)
  • $thumbnail-size:
  • $dupe-command: (0=None; 1=dupe; 2=dupe-case; 3=unique; 4=unique-case; 5=distinct; 6=distinct-case; 7=not-distinct; 8=not-distinct-case)


Please try the following formats:
statusbar_format - used when there's no selection

Code: Select all

<IF:$result-count:==1,"1 item",<TEXT:$result-count:,"#,###"> items> (<TEXT:$file-result-count:,"#,###"> files, <TEXT:$folder-result-count:,"#,###"> folders)

statusbar_selection_format - used when there's multiple items selected

Code: Select all

Selected <IF:$selection-count:==$result-count:,"all",<TEXT:$selection-count:,"#,###"> of> <TEXT:$result-count:,"#,###"> items (<IF:$file-result-count:,<IF:$file-selection-count:==$file-result-count:,"all",<TEXT:$file-selection-count:,"#,###"> of> <TEXT:$file-result-count:,"#,###">,no> files, <IF:$folder-result-count:,<if:$folder-selection-count:==$folder-result-count:,"all",<TEXT:$folder-selection-count:,"#,###"> of> <TEXT:$folder-result-count:,"#,###">,no> folders) | Size: <IF:$total-selection-size:!=$total-result-size:,<FORMATSIZE:$total-selection-size:,0> of ><FORMATSIZE:$total-result-size:,0><IF:$total-result-size:<=1024, (<if:$total-selection-size:!=$total-result-size:,<TEXT:$total-selection-size:,"#,###" of ><TEXT:$total-result-size:,"#,###" bytes)>


Issue will arise with the changes to the #function syntax changes.
<function:...> syntax has not changed, any will not change.
I am more than happy to help fix any issues with your status bar formats in Everything 1.5.0.1384+
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

2void

Thank you very much for the prompt help!
The customized codes work for me (in Everything 1.5.0.1385a (x64)).
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

2void
By chance, I noticed a rounding difference (?).
 
2024-11-30_Status Bar Format_up-from_1.5.0.1384 plus_28.11.2024.png
2024-11-30_Status Bar Format_up-from_1.5.0.1384 plus_28.11.2024.png (47.66 KiB) Viewed 2270 times
 
Please check.
Thank you!
w64bit
Posts: 257
Joined: Wed Jan 09, 2013 9:06 am

Re: Status Bar Format

Post by w64bit »

I am trying to obtain for single selection:
folder > 1 item selected |
file > 1 item selected | $s | $m
by using

Code: Select all

#if:<#is-folder:==1,1 item selected   |,1 item selected   |   $s   |   $m>
but I obtain the file format also for folders.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Status Bar Format

Post by NotNull »

Have to take look at the new statusbar format stuff, but this shoiuld work, I think:

Code: Select all

<IF:#is-folder:==1,1 item selected   |,1 item selected   |   $s   |   $m>
w64bit
Posts: 257
Joined: Wed Jan 09, 2013 9:06 am

Re: Status Bar Format

Post by w64bit »

@void
Is it possible to change INI settings:

from
statusbar_selected_item_format
to
statusbar_single_selection_format

and
statusbar_selection_format
to
statusbar_multiple_selection_format

Thank you
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

By chance, I noticed a rounding difference (?).
What is the exact size of the file?
It looks like you have set Everything to show sizes to two decimal places.
Everything will show the ceiling value.


#if:<#is-folder:==1,1 item selected |,1 item selected | $s | $m>

but I obtain the file format also for folders.
Please use the following format:

<if:$is-folder:,"1 item selected |","1 item selected | "$s" | "$m>



Is it possible to change INI settings:
I will consider renaming:
statusbar_selected_item_format => statusbar_single_selection_format
statusbar_selection_format => statusbar_multiple_selection_format

Thank you for the suggestion.
asamirid
Posts: 128
Joined: Sat Oct 13, 2018 12:28 pm

Re: Status Bar Format

Post by asamirid »

hello..

i need some help fixing my status bar formatting, now it displays zeros for any results all the time..

i made these formats long time ago, and i can't even read it now..

image_2024-12-03_003221929.png
image_2024-12-03_003221929.png (4.48 KiB) Viewed 2016 times

my status bar settings is..

statusbar_format

Code: Select all

statusbar_format=Found:#IF:<#AND:<#folder-result-count:,#file-result-count:>, #TEXT:<#result-count:,#,###> objects |,>#IF:<#folder-result-count:, #TEXT:<#folder-result-count:,#,###> folder#IF:<#folder-result-count:==1,,s>,>#IF:<#file-result-count:,#IF:<#folder-result-count:,#comma:,> #TEXT:<#file-result-count:,#,###> file#IF:<#file-result-count:==1,,s>,>

statusbar_selected_item_format

Code: Select all

statusbar_selected_item_format=Selected: $t | Size: $s#IF:<#dimensions:, | #dimensions: px,>#IF:<#length:, | #format-duration:<#length:> #IF:<#elementcount:<#format-duration:<#length:>,#colon:>==3,h:,>m:s,>#IF:<#audiobitrate:, | Audio: #eval:<#audiobitrate:/1000> kbps,>#IF:<#videobitrate:, | Video: #eval:<#framerate:/1000> fps#comma: #eval:<#videobitrate:/1000> kbps,> | atrb: $b | Created: $c | Modified: $m

statusbar_selection_format

Code: Select all

statusbar_selection_format=Selected: #if:<$selection-count:==$result-count:,all,#TEXT:$selection-count:,"#,###" of> #TEXT:$result-count:,"#,###" #ifs:<$folder-result-count:==0,files.,$file-result-count:==0,folders.,1,objects. (#if:<$file-selection-count:==$file-result-count:,all,#TEXT:$file-selection-count:,"#,###" of> #TEXT:$file-result-count:,"#,###" files#comma: #if:<$folder-selection-count:==$folder-result-count:,all,#TEXT:$folder-selection-count:,"#,###" of> #TEXT:$folder-result-count:,"#,###" folders.)> Size: #if:<$total-selection-size:!=$total-result-size:,#FORMATSIZE:$total-selection-size:,0 of >#FORMATSIZE:<$total-result-size:,0>.#if:<$total-result-size:<=1024, (#if:<$total-selection-size:!=$total-result-size:,#TEXT:$total-selection-size:,"#,###" of >#TEXT:$total-result-size:,"#,###" bytes.)> #if:<#total-selection-length:,| SMd: #format-duration:<#total-selection-length:> #IF:<#elementcount:<#format-duration:<#total-selection-length:>,#colon:>==3,h:,>m:s,>#if:<#total-result-length:, | TMd: #format-duration:<#total-result-length:> #IF:<#elementcount:<#format-duration:<#total-result-length:>,#colon:>==3,h:,>m:s,>
thank you..
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

statusbar_format:

Code: Select all

statusbar_format=Found:<IF:<AND:$folder-result-count:,$file-result-count:>, <TEXT:$result-count:,"#,###"> objects |,><IF:$folder-result-count:, <TEXT:$folder-result-count:,"#,###"> folder<IF:$folder-result-count:==1,,"s">,><IF:$file-result-count:,<IF:$folder-result-count:,",",> <TEXT:$file-result-count:,"#,###"> file<IF:$file-result-count:==1,,"s">,>

statusbar_selected_item_format:

Code: Select all

statusbar_selected_item_format=Selected: $t | Size: $s<IF:$dimensions:," | "$dimensions:" px"><IF:$length:," | "<format-duration:$length:> <IF:<elementcount:<format-duration:$length:>,":">==3,"h:">"m:s"><IF:$audiobitrate:," | Audio: "<eval:$audiobitrate:/1000>" kbps"><IF:$videobitrate:," | Video: "<eval:$framerate:/1000>" fps, "<eval:$videobitrate:/1000>" kbps"> | atrb: $b | Created: $c | Modified: $m

statusbar_selection_format:

Code: Select all

statusbar_selection_format=Selected: <if:$selection-count:==$result-count:,"all",<TEXT:$selection-count:,"#,###"> of> <TEXT:$result-count:,"#,###"> <ifs:$folder-result-count:==0,"files.",$file-result-count:==0,"folders.",1,"objects. ("<if:$file-selection-count:==$file-result-count:,"all",<TEXT:$file-selection-count:,"#,###"> of> <TEXT:$file-result-count:,"#,###">" files, "<if:$folder-selection-count:==$folder-result-count:,"all",<TEXT:$folder-selection-count:,"#,###"> of> <TEXT:$folder-result-count:,"#,###"> folders.)> Size: <if:$total-selection-size:!=$total-result-size:,<FORMATSIZE:$total-selection-size:,0> of ><FORMATSIZE:$total-result-size:,0>.<if:$total-result-size:<=1024," ("<if:$total-selection-size:!=$total-result-size:,<TEXT:$total-selection-size:,"#,###"> of ><TEXT:$total-result-size:,"#,###"> bytes.)> <if:$total-selection-length:,"| SMd: "<FORMAT-DURATION:$total-selection-length:> <IF:<ELEMENTCOUNT:<FORMAT-DURATION:$total-selection-length:>,":">==3,"h:">"m:s"><IF:$total-result-length:," | TMd: "<FORMAT-DURATION:$total-result-length:> <IF:<ELEMENTCOUNT:<FORMAT-DURATION:$total-result-length:>,":">==3,"h:",>"m:s",>
Your old formats will work in the next update. -1384/1385 has issues with #file-result-count: and other variables when using the preprocessor.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: Status Bar Format

Post by tuska »

void wrote: Sat Nov 30, 2024 11:58 pm
By chance, I noticed a rounding difference (?).
What is the exact size of the file?
It looks like you have set Everything to show sizes to two decimal places.
Everything will show the ceiling value.
Yes, thank you.
You just have to know how to calculate.

Unit converter - EN: Convert data sizes - DE: Datengrößen umrechnen
Bit · Byte · Kilobyte · Megabyte · Gigabyte · Terabyte · Kibibyte · Mebibyte · Gibibyte
 
2024-12-03_File size settings – 2 decimal places – total amount SHORTENED to 2 decimal places.png
2024-12-03_File size settings – 2 decimal places – total amount SHORTENED to 2 decimal places.png (50.54 KiB) Viewed 1944 times
win32
Posts: 12
Joined: Fri Mar 19, 2021 11:48 am

Re: Status Bar Format

Post by win32 »

(I dont know if was better a to start a new thread)

@void,
Consider adding sth like a printiff preprocessor function, a function that prints its argument if and only if the resolved variables in it are not empty, (similar to foobar2000's titleformatting [Title: %title%] syntax). Here is an example:

Code: Select all

[printiff:"T: #title"] =>
      will print: "T: <title>" if #title property exists,
      blank/empty otherwise (ie, it wont print the "T: " part either)
 
Also, a question, is there any setting to save function definitions in the .ini file, or should I just use the statusbar_format field. But are the contents of this field evaluated only once or every time the resultlist changes?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

There's already an [IFLEN:...] function.

[iflen:$title:,"T: "$title:]

[iflen:$size:,"SZ: "$size:]



Also, a question, is there any setting to save function definitions in the .ini file, or should I just use the statusbar_format field.
I recommend just using the statusbar_format.

autoexec can be set to the filename of a text file.
Specify an autoexec.txt file with your function definitions.


But are the contents of this field evaluated only once or every time the resultlist changes?
Every time the result list changes.
mvdeckard
Posts: 30
Joined: Tue Oct 25, 2022 11:46 pm

Re: Status Bar Format

Post by mvdeckard »

Is there a statusbar string for the "Media Created" property? That'd be handy.

clip.png
clip.png (5.69 KiB) Viewed 310 times
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Status Bar Format

Post by void »

$media-created:

All properties are available.
$property-name:

Substitute spaces in the property name with
-




Format dates with:
<FORMATFILETIME:$media-created:>

<FORMATFILETIME:...>
Post Reply