EverythingNet icon indicating copy to clipboard operation
EverythingNet copied to clipboard

Allow direct string query

Open PedroNunoSantos opened this issue 6 years ago • 8 comments

Hello,

Thank you for this library. The fluent api is quite handy, but, is there any reason not to expose direct string queries to everything?

Something like :

var everything = new Everything();
var results = everything.Search(@"c:\ <\appdata\|\desktop> dm:last1days <*.txt|*.7z>");

Regards, Pedro

PedroNunoSantos avatar Jun 10 '19 15:06 PedroNunoSantos

Hello Pedro, Thanks for your feedback, and I completely agree, it's a hole in the API. I will make an update soon to support this feature.

ju2pom avatar Jun 10 '19 16:06 ju2pom

To follow up my previous answer, your request has pushed me to work on an evolution of this library to improve a bit the API. So it's coming but I also consider at the same time releasing a .net Standard version if possible.

ju2pom avatar Jun 14 '19 07:06 ju2pom

Hello,

thanks for the follow up, that is cool stuff!

i was wondering, since i use this lib for some automation stuff i would like to run and then quit Everything.exe when I’m done, and leave no services and processes lying around.

I guess that would work best is to use "Everything.exe -startup" do the automation and then use "Everything.exe -quit".

Can you consider exposing the -quit flag in the public api?

Regards, Pedro

PedroNunoSantos avatar Jun 14 '19 09:06 PedroNunoSantos

You just pointed out another change I'd like to make in this library. I'd like to give more control on the underlying everything process. For example

  • be able to show the debug console
  • Define where Everything db is store
  • Use a dedicated Everything client using named pipe (to avoid conflicts with potential other installation)
  • Allow to stop this dedicated Everything client

I already have some work on this locally, I need to finish and polish :)

ju2pom avatar Jun 14 '19 09:06 ju2pom

Hello Pedro, If you're still interested I made a new branch for EverythingNet2 with the following changes:

  • new API, very similar to v1 but code needs to updated
  • ability to search with raw query (as you requested)
  • Improved how everything process is started, and wait for the DB to be ready when started for the first time
  • ability to show debug console (not really tested yet)

It's not finished, but I think it's usable and your feedback will be welcome :)

Regards, Julien.

ju2pom avatar Jul 11 '19 11:07 ju2pom

Hello Julien,

good to hear it, it is a very cool addition. I will check it out.

Any plans to release a prerelease nuget? Thanks.

Regards, Pedro

PedroNunoSantos avatar Jul 12 '19 14:07 PedroNunoSantos

Hello Pedro,

I'm glad you like the new API. For the nuget package I need to check the library compatibility with various .net framework version. I may end up publishing a multi-target nuget package. But if so, I need to learn how to do it ... Anyway I could setup a package for .net 4.5 quickly I guess.

Regards, Julien.

ju2pom avatar Jul 12 '19 14:07 ju2pom

Not a problem, no need to hurry. Thanks again.

PedroNunoSantos avatar Jul 12 '19 14:07 PedroNunoSantos