What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by raccoon »

filelist0:
filelist1:
...
filelist9:

Search for the file list.
Hold down CTRL and click the filelist0: - filelist9: text in the search box to add or remove files from the file list.

Example:
filelist0: !filelist1:
Is there any way to use partial filenames inside of filelists in order to locate all substring matches?

I found that the filelists will accept full-paths and whole filenames-with-extension only, but not substrings or wildcards.

I was hoping to use these filelist dialogues to paste a long list of names from Notepad, instead of using <name1|name2|...|name200> grouping, where the list item names match the left side of the files I'm looking for.

I see how this quickly can spiral into supporting all sorts of search syntax and compromise the feature's intended scope. Wildcards * and ? should at least not compromise existing left/right anchoring, if supported.
Apples.1999.*
Bananas.2002.*
Grapes.2014.*
Oranges.2017.*
*.2019.*
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by void »

Is there any way to use partial filenames inside of filelists in order to locate all substring matches?
Currently no.

I've put on my TODO list to support wildcards.
However, expect the same performance as <name*1|name*2|...|name*200>

With Everything 1.5, you can paste:

Code: Select all

Apples.1999.*
Bananas.2002.*
Grapes.2014.*
Oranges.2017.*
*.2019.*
Directly into the search box and Everything will automatically setup OR groups from each line.



paste_new_line_op
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by raccoon »

Thanks @void:

There are a couple concerns I have with pasting long OR groups:

- The text in the search bar becomes invisible for very long strings. Between 5~6 Kb in 1.4; Between 6~7 Kb in 1.5. (Windows 7 Editbox control)

- Currently, the auto OR grouping uses <line1>|<line2>|<line3>|<line4> syntax, but not <line1|line2|line3|line4>, regardless of OR>AND operator precedence.

- It's very difficult impossible to make small modifications to a long OR grouped list without going back to Notepad.

- I assume filelist0: will support encapsulation in other functions at some point, if not already.

I really am excited by these new filelists, and hope to see them better documented and explained. Like, how long do they persist in memory before being recycled? And the fact that a hotkey can be assigned for the File List Editor (just discovered).

Is there any way I can help with documentation? Maybe a wiki?
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by void »

how long do they persist in memory before being recycled?
File lists only last while the Everything Search window is opened.
Once the window is closed the list is lost.
Use the Export option to save a file list to disk.
Use the Import option to load a file list from disk.


- I assume filelist0: will support encapsulation in other functions at some point, if not already.
Currently there is no functions that take a file list slot.
I will add support for this where appropriate.


Is there any way I can help with documentation? Maybe a wiki?
Thank you for your offer to help.
I've make a forum post here to try to cover all the file list slot information.
I've started with the basics, please feel free to add to this forum post.

I will merge this into the support wiki for the Everything 1.5 release.
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by void »

Everything 1.5.0.1280a adds support for wildcards in filelists.


Please do not expect the best performance for hundreds of wildcard tests.
An OR list DFA is on my TODO list to make this instant.

Everything 1.5.0.1280a also adds support for opening the file list slot editor when pressing F2 while the caret is on the filelist1: text.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by raccoon »

nice! Thanks! And F2 is extremely convenient :D (Are there any other syntax at this point that uses F2 for expansion?)

((I wouldn't even know where to begin writing a DFA for that. Geez man!))
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by void »

Anywhere in Everything, F2 = Edit.


The following function calls use F2 from the search box (or Ctrl + Click):
filelist0: - filelist9:
childfilelist0: - childfilelist9:
includefilelist:
#include:
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by raccoon »

Small request, could you add the macro "filelist:" == "filelist0:" and "childfilelist:" == "childfilelist0:" for F2 support?

I have tried /define filelist=filelist0: and the definition works when changing from filelist0: to filelist: without destroying the file list... but, I can't use the F2 accelerator to open the File List Editor. I just hate reaching for the 0 key and I'm ornery. :)
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by void »

I have put on my TODO list to expand macros when CTRL+clicking text.

Thank you for the suggestion.

For now, Ctrl+Click will only work on the default functions (eg: filelist1:)
void
Developer
Posts: 16897
Joined: Fri Oct 16, 2009 11:31 pm

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by void »

Everything 1.5.0.1313a will now expand macros when CTRL-left-clicking search functions.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: What Substrings Are Supported By filelist0: filelist1 ... filelist9:?

Post by raccoon »

F2 also works now. Thanks :)
Post Reply