Syntax - | and ; as delimiter

General discussion related to "Everything".
Post Reply
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Syntax - | and ; as delimiter

Post by Stamimail »

c:\folder\subfolder\|"d:\another folder\"|"e:\folder with spaces\subfolder\" ext:mp3;mp4;wav
Currently we need to use this syntax to get it work:
ext:mp3;mp4;wav

IMHO, it can be improved for making it more intuitive.
These should also work:
1. ext:.mp3;.mp4;.wav
2. ext:mp3|mp4|wav (should be a difference between a | without a leading space and <space>|)
3. ext:<mp3|mp4|wav>

Note also that
datemodified:jan;feb;mar
doesn't wotk.
void
Developer
Posts: 16747
Joined: Fri Oct 16, 2009 11:31 pm

Re: Syntax - | and ; as delimiter

Post by void »

Using ; in an extension list is widely supported.
1. ext:.mp3;.mp4;.wav
You can use a . in your extension list, including the . may make it more confusing.
2. ext:mp3|mp4|wav (should be a difference between a | without a leading space and <space>|)
I'll consider supporting | in extension lists too, we could get away with this because ext is an OR list and a following OR would be unlikely. A space could be used to break the term, where | would normally break the term. The Everything term parser would need to know that ext: eats | before splitting up terms.
Adding a special case just for ext: may also cause confusion, the user might expect | to break the term as it does with every other term.
I will add support for: ext:"mp3|jpg"
Double quotes always escape operators.
3. ext:<mp3|mp4|wav>
Using < > could also work, I'll consider it in a future release, it's more to type. The Everything term parser would need to know that ext: eats < | and >.
datemodified:jan;feb;mar
You must specify a single date or date range, for example:
datemodified:jan-mar

If you want multiple dates, you will need to use multiple ORed terms:
datemodified:jan | datemodified:mar
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Syntax - | and ; as delimiter

Post by Stamimail »

Adding a special case just for ext: may also cause confusion, the user might expect | to break the term as it does with every other term.
I meant it will be like that for all SomethingWithColon:
So that
datemodified:jan|feb|mar
also will work. IMHO, there is no reason why it shouldn't.
The colon : tells us the whole next characters is been treated as a group till the <space> that telling us the group was ended.
void
Developer
Posts: 16747
Joined: Fri Oct 16, 2009 11:31 pm

Re: Syntax - | and ; as delimiter

Post by void »

I can see this being useful for content: too, such as:
content:<123|abc|zxc|asd>

Searches for content:123 | content:abc | content:zxc | content:asd

Will consider it for Everything 1.5..
Post Reply