Bookmark for “rc:today” does not remember sort setting

Discussion related to "Everything" 1.5 Alpha.
Post Reply
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

I have a bookmark called rc:today that is supposed to sort results by Modified Date —> The sort is supposed to list the newest entries first (by Modified Date).

When I select this bookmark, it sorts by Type instead of Date Modified. Choosing to sort Ascending or Descending makes no difference either; the result list is sorted by Type instead of Date Modified

BTW: dc:today also does not sort by Date Modified like it is supposed to. Is there an .ini setting that overrides my bookmark's setting? Any advice is appreciated!
horst.epp
Posts: 1447
Joined: Fri Apr 04, 2014 3:24 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by horst.epp »

That is all working for me.
The Bookmark example sorts as configured
and dc:today sorts by default as you request.
______________________________________________________
Windows 10 Home x64 Version 21H2 (OS Build 19044.1200)
Everything 1.5.0.1273a (x64)
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

I don't know what's going on with my problem. When I type rc:today in the search bar, Everything starts with sorting by Type — I have to click on the Date Modified column twice before Everything sorts the list by the Date Modified column (Descending). I must have a setting somewhere that is overriding my desired sort?
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by void »

Do the bookmarks have any macros defined?

Could you please send your Bookmarks.csv in %APPDATA%\Everything to support@voidtools.com

I will take a look..
Last edited by void on Wed Sep 01, 2021 5:01 am, edited 1 time in total.
Reason: Bookmarks.ini => Bookmarks.csv
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

This is strange: I don't have a Bookmarks.ini file, anywhere. The bookmark in question looks like this:

https://imgur.com/Od4EHgn
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by void »

Sorry, bookmarks.csv (I have been working with INIs !)

Could you please send your Bookmarks.csv in %APPDATA%\Everything to support@voidtools.com



Thanks for the screenshot.

Searching for rc:today will not active this bookmark.

You will need to set a macro and search for that macro:
  • In Everything, from the Bookmarks menu, click Organize Bookmarks....
  • Select the Recent Changes bookmark
  • Click Edit....
  • Change the Sort to: Date Modified (Descending)
  • Change the Macro to:
    today
    (Doesn't have to be today, can be any ascii text, eg: rct )
    (When you search for this phrase with a trailing colon (:) the search is replaced with the bookmark's search and the sort order is applied)
  • Change the Search to:
    rc:today
    (or dm:today)
  • Click OK.
  • Click OK.
Now, when you search for today: the search is replaced with rc:today and the sort is set to date modified descending.
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

@void:

Thank you for replying. I did as you instructed, and now it seems to be working as desired. Yeah!

Now if we can solve that “Show only exactly named files while excluding other files that have the selected file name within their names...” :lol:
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by void »

Could you please expand on “Show only exactly named files while excluding other files that have the selected file name within their names...”


Please try the exact: search modifier.

For example:

exact:hosts
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

@void:

About the “Find specific file name only...” thing (example):

A little setup info: I have my Everything folder backed up to multiple storage devices. Whenever I make any changes to my source folder (D:\Everything64), I immediately back up my source folder to all of my other backup folders; all folders are identical in size and content after the backup process completes.

To make backing up my Bookmarks-1.5a.csv and Everything-1.5a.ini files really easy, I created a batch file that copies only these files to the other backup drives/folders. So, I have in my D:\Everything64 folder my Bookmarks-1.5a.csv and Everything-1.5a.ini files, and the batch file, which is named Backup “Everything-1.5a.ini” — “Bookmarks-1.5a.csv”.bat

There are times when I want to find only all instances of the Bookmarks-1.5a.csv file, but do not want to find other files which have Bookmarks-1.5a.csv in their names —> Backup “Everything-1.5a.ini” — “Bookmarks-1.5a.csv”.bat in this case.

The command I am using now is: D:\Everything64\Everything64.exe -name-part "%1" -s file: (This is activated by a Directory Opus hotkey, CTRL+ALT+F12, which is bound to my mouse's middle-click button). When I select my Bookmarks-1.5a.csv file and press the middle-mouse button, Everything finds the Bookmarks-1.5a.csv file, but it also finds the Backup “Everything-1.5a.ini” — “Bookmarks-1.5a.csv”.bat file as well. Since I have multiple backups, all instances of those files are found. However, if I then type exact: in front of the text in the search box ("BOOKMARKS-1.5a.CSV" file:), all of the files not named exactly Bookmarks-1.5a.csv are filtered out, leaving just Bookmarks-1.5a.csv in the results list, which is what I would like to happen. What I want to do is somehow make Everything insert exact: into the search box automatically, at the front of the text, without forcing me to type it in manually. Thanks for your help!

TL;DR: Select a file in Directory Opus (or Explorer), activate a hotkey and have Everything find all instances of that exactly name file while not showing other files that have the desired file's name within their names.
Mizufluffy
Posts: 62
Joined: Sun Jun 13, 2021 10:22 am

Re: Bookmark for “rc:today” does not remember sort setting

Post by Mizufluffy »

@SuperDude

Would this perhaps work?

Code: Select all

D:\Everything64\Everything64.exe -s "wfn:%1"
I can't say I'm familiar with Everything command line options much but according to https://www.voidtools.com/support/every ... e_options/ the -s (or -search) sets the search text. This in a theory should allow using all search options available in Everything. I couldn't find information what exact: is (not in Help > Search Syntax or Search > Insert Function...). Is it Everything feature or macro for your filters/bookmarks?
Anyway, wfn: (or wholefilename:) is one of the modifiers in Everything (Everything Search Syntax describes it as "Match the whole filename or property.").

To test this works I created three files under C:\temp
  • Backup “Everything-1.5a.ini” — “Bookmarks-1.5a.csv”.bat
  • Bookmarks-1.5a.csv
  • Everything-1.5a.ini
Without wfn: Everything finds
C:\temp\Bookmarks-1.5a.csv
C:\temp\Backup “Everything-1.5a.ini” — “Bookmarks-1.5a.csv”.bat
C:\Users\Käyttäjä\AppData\Roaming\Everything\Bookmarks-1.5a.csv

but with wfn: it only finds the two Bookmarks-1.5a.csv files.

The full command I used was

Code: Select all

"C:\Program Files\Everything 1.5a\Everything64.exe" -s "wfn:Bookmarks-1.5a.csv"
so matching it with your command I replaced Everything64.exe path and replaced hard coded file name with your %1. Could you try if it works?
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by void »

Please try the following command with Everything 1.5:


Everything64.exe -s exact:#quote:#basename:"%1"



Example:
Everything64.exe -s exact:#quote:#basename:"D:\Everything64\Bookmarks-1.5a.csv"
will set the search to:
exact:"Bookmarks-1.5a.csv"


Search preprocessor commands are available in Everything 1.5

-s (specify the search)
exact: (use the exact search modifier)
#quote: (this will ensure white spaces are escaped)
#basename: (like -name-part, removes the path part)
Last edited by void on Fri Sep 03, 2021 10:35 pm, edited 1 time in total.
Reason: Everything64.exe -s exact:#quote:#basename:"D:\Everything64\Bookmarks-1.5a.csv" => Everything64.exe -s exact:#quote:#[basename:"D:\Everything64\Bookmarks-1.5a.csv"#]:
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

@void:

Searching for Bookmarks-1.5a.csv using your command: D:\Everything64.exe -s exact:#quote:#basename:"%1" gives me the following error message:

https://i.imgur.com/zpN509j.png —> I even tried adding D:\Everything64 to my Environment Variables (both System and User), but this did not do anything.
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

@void:

Oops, my screenshot shows I searched for Everything-1.5a.ini when it should have been Bookmarks-1.5a.csv
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

@void:

I'm not going to bother you anymore, but I wanted to tell you my mistakes I've made:

1) I unknowingly had Match Path enabled when I first tried your new command. However, disabling Match Path did not make a difference.

2) I forgot to include the D:\Everything64 part of the path name in the command line (I had Everything64.exe -s exact:#quote:#basename:"%1" instead of D:\Everything64\Everything64.exe -s exact:#quote:#basename:"%1"

Anyway, your command did work when searching for Bookmarks-1.5a.csv and Everything-1.5a.ini, but then searching for another file, like “Command Line Options - voidtools.html” resulted in no hits. Something interesting to note: When I searched for “Command Line Options - voidtools.html,” the search box text had quotation marks only around the word Command, like this —> exact:"Command" Line Options - voidtools.html —> Sometimes quotation marks would be in the right place (around the entire file's name) while at other times, the quotation marks were only around the first word in a file's name.

When searching for the Mozilla Firefox “firefox.exe file,” the search box showed this: exact:"Mozilla" Firefox\firefox.exe —> Note the backslash has now been added to the search box text.

AND... For some reason, I can search for any file in the C:\Windows folder (including any subfolders), and Everything works fine. Weird ;)
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by void »

I'm not going to bother you anymore, but I wanted to tell you my mistakes I've made:
Please do, I'm happy to help..
It helps refresh my command line knowledge.


I keep forgetting to escape spaces...
Please try the following call:

D:\Everything64\Everything64.exe -s nopath:exact:#quote:#[basename:"%1"#]:


nopath: will override the Search -> Match Path setting
#[basename:%1#]: will parse all the text in %1 (including the spaces)



If you are calling this from a command prompt, another method is:


D:\Everything64\Everything64.exe -s nopath:exact:#quote:#basename:""""%1""""
""" = single literal quote.
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

@void: Woo hoo! I'm so excited, this works exactly as desired. THANK YOU!!! :P
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by SuperDude »

Thank you to everyone who tried to help me! There was no way the solution could have been found without @void's help. The solution was this astounding piece of code:

D:\Everything64\Everything64.exe -s nopath:exact:#quote:#[basename:"%1"#]:
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Bookmark for “rc:today” does not remember sort setting

Post by void »

Glad to hear the command helped.

Thank you for your support.
Post Reply