yatima1460 / Drill

Search files without indexing, but fast crawling
https://drill.software/
GNU General Public License v2.0
268 stars 21 forks source link

[Feature Request] Wildcard search #66

Open yochananmarqos opened 4 years ago

yochananmarqos commented 4 years ago

Describe the solution you'd like

Example 1: I want to be able to search for *.md and all Markdown files will be displayed.

Example 2: I want to be able to search for myfile* and all files beginning with myfile will be displayed.

Example 3: I want to be able to search for *myfile and all files ending with myfile will be displayed.

Example 4: I want to be able to search for *myfile* and all files containing myfile wil be displayed.

My syntax may be slightly off, however you get my meaning.

Thankee sai.

yatima1460 commented 4 years ago

I was actually considering the idea of adding a regex: token like:

all files starting with myfile input box: regex:^myfile

or

all files ending with myfile input box: regex:myfile$

exactly myfile input box: regex:^myfile$

or any other form of valid regex compiled on the fly 🤔

yatima1460 commented 4 years ago

There is also the discussion to be made if Wildcard search and Regex should both be implemented, with Wildcard being enabled by default without any token, instead Regex will be used by pro users with regex: