Window Title Format

Discussion related to "Everything" 1.5 Alpha.
Post Reply
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Window Title Format

Post by void »

To customize the window title format:
  • In Everything 1.5.0.1305a or later, type in the following search and press ENTER:
    /window_title_format=format
    where format can include the following:
    • $search:
    • $s
    • $s?{$s - }
      The current search.
      Use $s?{text} to insert text only when $s is not empty.
    • $a
    • $a?{$a - }
      The active filter.
      Use $a?{text} to insert text only when $a is not empty.
    • $d
    • $d?{$d - }
      The active directory.
      Use $d?{text} to insert text only when $d is not empty.
    • $version:
    • $v
    • $v?{$v - }
      The current version.
      Use $v?{text} to insert text only when $v is not empty.
    • $instance:
    • $i
    • $i?{ ($i)}
      The current instance.
      Use $i?{text} to insert text only when $i is not empty.
    • $t
      Everything
    • $$
      Literal $
    • $?
      Literal ?
    • ${
      Literal {
    • $}
      Literal }
    • $l:
      Set to 1 if the last used variable had a non-zero length.
      Otherwise, it is empty.
    • $filelist-filename:
    • $f
      The filename of the opened filelist.
    • $current-filter:
    • $filter:
      The name of the active filter.
    • $directory:
      The folder sidebar selection.
    • $match-case:
      1 if match case is enabled. Otherwise 0
    • $match-diacritics:
      1 if match diacritics is enabled. Otherwise 0
    • $match-path:
      if match path is enabled. Otherwise 0
    • $match-whole-words:
      1 if match whole words is enabled. Otherwise 0
    • $match-prefix:
      1 if match prefix is enabled. Otherwise 0
    • $match-suffix:
      1 if match suffix is enabled. Otherwise 0
    • $ignore-punctuation:
      1 if ignore punctuation is enabled. Otherwise 0
    • $ignore-white-space:
      1 if ignore white space is enabled. Otherwise 0
    • $match-regex:
      1 if match regex is enabled. Otherwise 0
    • $is-omit:
      1 if a result is omitted. Otherwise 0
    • $is-temp-omit:
      1 if a result is temporarily omitted. Otherwise 0
    • $is-dupe:
      1 if there is a current find dupe operation. Otherwise 0
    • $is-paused:
      1 if index updates are currently paused. Otherwise 0
    • $is-stopped:
      1 if index updates are currently stopped. Otherwise 0
    • $is-admin:
      1 if currently running as administrator. Otherwise 0
    • $is-read-only:
      1 if the database is currently in read-only mode. Otherwise 0
    • $is-safe-mode:
      1 if currently started in safe mode. Otherwise 0


To revert the window title format back to the default:

The old format syntax is still supported.



The Everything Preprocessor is supported.
Preprocessor variables can be set from the command line with -define.


The default format is:
$s?{$s - }$a?{$a - }$d?{$d - }$t$i?{ ($i)} $v[if:isadmin:," [Administrator]"][if:isdbreadonly:," [Read-only]"]
Using a blank format will also use the default format.

Example title output:
My Search - Everything (1.5a) 1.5.0.1305a (x64)



Tabs share the same title format with the advanced setting: tabs_title_format
Status Bar Format
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Window Title Format

Post by raccoon »

@void, could you update the current default window title format on your above post, and then delete my comment?

Can you also demonstrate inline-if alternation, ie, else statement. "show this text if a string is not empty, otherwise show that text if the string is empty."
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: Window Title Format

Post by void »

Updated.

[if:expression,value-to-return-if-expression-is-true,value-to-return-if-expression-is-false]

The following will return [Administrator] if running as an admin, otherwise [Standard User]
[if:isadmin:,"[Administrator]","[Standard User]"]
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: Window Title Format

Post by ChrisGreaves »

void wrote: Fri Mar 18, 2022 6:23 am To customize the window title format:
Hi Void, for those of us who are gluttons for data, any chance of a window title format variable of the form $LatestVersion?
A variety of uses, not the least would be seeing in a post that a user is NOT way behind the times.
Having written that, perhaps an alternative would be, when $version is employed, accentuate it (bold, italic, underline, when NOT the latest version?

I may not know what I am talking about here. I have not gotten around to playing with the caption title, let alone conditional statements as suggested by raccoon!

Cheers, Chris
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: Window Title Format

Post by void »

I will consider an $is-out-of-date: flag, eg: [if:$is-out-of-date:,New version is available]

Thank you for the suggestion.
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: Window Title Format

Post by ChrisGreaves »

void wrote: Tue Apr 11, 2023 11:21 pm I will consider an $is-out-of-date: flag, eg: [if:$is-out-of-date,New version is available]
Thanks. Almost anything that is a passive hint.
I rather dislike applications that force me to click "not right now" every time that they spring into [in]action.
Cheers, Chris
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: Window Title Format

Post by meteorquake »

Hello!
So can the window title pick up on items under selection?
For example, it would be useful to be able to say that when a window has the folder sidebar open, the window title is the selected folder name in that sidebar.
David
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: Window Title Format

Post by void »

I will consider adding a variable to reference the current folder sidebar selection.

Thank you for the suggestion.
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: Window Title Format

Post by void »

Everything 1.5.0.1353a adds the following values to the title format:

$current-filter: => The name of the active filter
$match-case: => 1 if match case is enabled. Otherwise 0
$match-diacritics: => 1 if match diacritics is enabled. Otherwise 0
$match-path: => 1 if match path is enabled. Otherwise 0
$match-whole-words: => 1 if match whole words is enabled. Otherwise 0
$match-prefix: => 1 if match prefix is enabled. Otherwise 0
$match-suffix: => 1 if match suffix is enabled. Otherwise 0
$ignore-punctuation: => 1 if ignore punctuation is enabled. Otherwise 0
$ignore-white-space: => 1 if ignore white space is enabled. Otherwise 0
$match-regex: => 1 if match regex is enabled. Otherwise 0

These values will only work in the Everything UI.
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Re: Window Title Format

Post by Ralf_Reddings »

If I open a file list at the command line:

Code: Select all

everything64 -s 'my search string' -filelist list2.csv
The search window will be:

Code: Select all

my search string - My filter - list2.csv - Everything 1.5.0.1371a (x64)
How is the default title format able to print the opened file list on the window title? There does not seem to be a variable for doing this in a custom title format.

For example if I declare my custom title format of
/window_title_format=$search: -- $directory:
and then open a new window with:

Code: Select all

everything64 -s 'my search string' -filelist list2.csv
The window title will be:

Code: Select all

my search string
I am looking to also include the current file list in the window title.
void
Developer
Posts: 16678
Joined: Fri Oct 16, 2009 11:31 pm

Re: Window Title Format

Post by void »

/window_title_format=$search: -- $directory: -- $filelist-filename:

added: $filelist-filename: to documentation.
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Re: Window Title Format

Post by Ralf_Reddings »

Perfect. Thanks!
Post Reply