Make 'window caption' display the title of the bookmark

Discussion related to "Everything" 1.5 Alpha.
Post Reply
YorkMorgan
Posts: 15
Joined: Mon Jul 05, 2021 12:23 pm

Make 'window caption' display the title of the bookmark

Post by YorkMorgan »

Hello,

So I know there are some ways to customize the window title, such as the one listed here:
https://www.voidtools.com/support/every ... stomizing/

But is there a way to show the name of the saved bookmark as a window title, instead of the search string itself?

thanks as always for the amazing software.
void
Developer
Posts: 15519
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make 'window caption' display the title of the bookmark

Post by void »

Thank you for your feedback YorkMorgan,

Everything doesn't have an 'active bookmark'.
The bookmark is opened and you can immediately change any search options.



Currently, the best way to do this is to use a nop: search.



For example, set your bookmark search to:

nop:"My Bookmark Title" my bookmark search

Unfortunately, this will leave nop: in your search box.
YorkMorgan
Posts: 15
Joined: Mon Jul 05, 2021 12:23 pm

Re: Make 'window caption' display the title of the bookmark

Post by YorkMorgan »

Thanks for your response.
I tried this but it didn't work for me. I'm sure I did something wrong here r didn't understand your instructions.

By the way, in addition to this solution, is there a way to show the search string as the title without " - Everything (1.5a) 1.5.1333a (x64)"
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Make 'window caption' display the title of the bookmark

Post by raccoon »

See the ini setting window_title_format

Everything 1.4 window_title_format
Everything 1.5 window_title_format

discussion: viewtopic.php?f=5&t=11942&p=48125
discussion: viewtopic.php?f=4&t=11270#p44934

You can change the titlebar text to show only the search query text, excluding " - Everything (1.5a) 1.5.1333a (x64)"
But I don't know how to make it show "Everything (1.5a) 1.5.1333a (x64)" when there is no search query text; when the search bar is empty.

example: type the searchbar command /window_title_format=$s then press enter.
return to default by typing /window_title_format= then press enter.
YorkMorgan
Posts: 15
Joined: Mon Jul 05, 2021 12:23 pm

Re: Make 'window caption' display the title of the bookmark

Post by YorkMorgan »

Thanks, I guess that will do for now.

The ideal way would be to show the name/title of the bookmark regardless of the search query itself. But maybe that would be something on the to do list.

Thank you both.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Make 'window caption' display the title of the bookmark

Post by raccoon »

Maybe @void could populate a variable with the most recently selected Bookmark Name, and then clear that variable upon Searchbar edit. Then we can drop that variable into the titlebar when it is a non-empty string. Or he could populate the existing $s variable with the Bookmark Name under the same conditions as above; replaced with the search query if edits to the searchbar are made.
void
Developer
Posts: 15519
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make 'window caption' display the title of the bookmark

Post by void »

I'll consider it.

Maybe a search command to temporarily set the window caption, until the search changes..
ChrisGreaves
Posts: 611
Joined: Wed Jan 05, 2022 9:29 pm

Re: Make 'window caption' display the title of the bookmark

Post by ChrisGreaves »

YorkMorgan wrote: Thu Jan 19, 2023 4:09 pmThe ideal way would be to show the name/title of the bookmark ...
This might represent erroneous data if the bookmark name is duplicated?
When there are two bookmarks each named "MyFirstBookmark", displaying the bookmark name "MyFirstBookmark" can bring up the wrong idea in the user's head?
Cheers, Chris
YorkMorgan
Posts: 15
Joined: Mon Jul 05, 2021 12:23 pm

Re: Make 'window caption' display the title of the bookmark

Post by YorkMorgan »

Hi,

is there a way to achieve this now?

Cheers.
NotNull
Posts: 5298
Joined: Wed May 24, 2017 9:22 pm

Re: Make 'window caption' display the title of the bookmark

Post by NotNull »

Long anwer: No. :)
void
Developer
Posts: 15519
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make 'window caption' display the title of the bookmark

Post by void »

One issue here is Everything doesn't have an 'active' bookmark.

When you open a bookmark, the search is set, search options are checked and unchecked.
Everything will continue on as if you manually changed the search.



I guess Everything could flag the current search as an 'active' bookmark and clear this when you change your search.

How would you see it working?
When should Everything clear this title from the caption?



Another idea is to allow the user to set a window instance name.
This has not been implemented yet, it is still on my TODO list.
But again, how/when would you clear this name.



Everything shows the active filter in the window caption by default.
Please consider using filters instead of bookmarks.
You can customize the active filter name in your window caption using $filter: in the window_title_format advanced setting.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Make 'window caption' display the title of the bookmark

Post by raccoon »

Experiment with changing the titlebar variable $s to the name of the bookmark instead of the content of the search string, when a bookmark is selected. $s will change next time something is typed into the search bar or another bookmark is selected. I can't envisage a scenario where anyone becomes offended by this.
Post Reply