es: URL and result-omissions:

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Alex_Void
Posts: 8
Joined: Tue Jan 10, 2017 1:14 pm

es: URL and result-omissions:

Post by Alex_Void »

Greetings to everyone!

What do I have?
  • Using v1.5.0.1373a, I have a list of folders in my Result Omissions. Mostly Backup-, Windows- and Temp-Directories. With that I can concentrate on my productive data files.
  • Additionally I have assigned "Ctrl-O" to "Index | Enable Result Omissions (Global)". With that shortcut I can quickly switch between results and omitted results.
  • And I have the URL protocol checked to use "es:searchtext" as new URL
Works great - Thanks a lot for this fine piece of software!

What do I want to achieve?

I want to build URL's where I can overwrite the current state of OMIT (lower right corner). BTW, regardless of what the state actually is.

Example: with this URL
es:c:\windows\ccmcache sort:path !result-omissions:

I want to show the current size of the Windows ccmcache. ccmcache is in my list of result omissions. Sure I can toggle the display using Ctrl-O as configured above. But this is an additional keystroke. :D

Is it possible to build a URL where I can overwrite OMIT, because I want to see the ccmcache.

I am quite aware of
  • temp-result-omissions:
  • result-omissions:
  • omit-results:
  • /enable-temp-omit-results
  • /disable-temp-omit-results
  • /toggle-temp-omit-results
but I was not able to get that working.

Any help?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: es: URL and result-omissions:

Post by NotNull »

es: will show all results, include omitted ones
(Added count:10 to limit the amount of results; ext:txt as a dummy search)

To show all results, including omitted ones:

Code: Select all

es.exe   count:10   ext:txt

To show results, minus omited entries:

Code: Select all

es.exe   !result-omissions:   count:10   ext:txt

To show results *just* among omitted entries:

Code: Select all

es.exe   result-omissions:   count:10   ext:txt


Another quick test that will show the amount of items per for each search:

Code: Select all

es.exe    -getresultcount
es.exe  !result-omissions:  -getresultcount
es.exe   result-omissions:  -getresultcount
#search1 should be equal to #search2 + #search2

(not tested though)
Alex_Void
Posts: 8
Joined: Tue Jan 10, 2017 1:14 pm

Re: es: URL and result-omissions:

Post by Alex_Void »

Thanks a lot, dear NotNull, for your answer!

But my question is not about es.exe on the command line, it is about es: with the URL protocol as set here in Options:
2024-05-10_T_21-52-05.jpg
2024-05-10_T_21-52-05.jpg (92.47 KiB) Viewed 1397 times
A little more background: I do a lot of documentation and literal programming using emacs with org-mode. BTW, another fine piece of software!

I have org-mode configured as such, that es-Hyperlinks actually appear and look and behave like other "normal" hyperlinks.

Here you see some text and some hyperlinks in my emacs:
2024-05-10_T_22-23-47.jpg
2024-05-10_T_22-23-47.jpg (14.79 KiB) Viewed 1397 times
When I click on the https-link, my browser opens.
When I click on the es-link, my Everything window opens (not the command line es.exe).

Opening the latter looks like this:
2024-05-10_T_22-26-39.jpg
2024-05-10_T_22-26-39.jpg (47.62 KiB) Viewed 1397 times
Notice the OMIT in a red circle in the right below corner.
This means, that I have generally enabled "Index / Enable Result Omissions".

Now to my question: which MAGIC keyword I can give within the hyperlink, that the general OMIT in the lower right corner is overwritten, so that it looks like this:
2024-05-10_T_22-34-09.jpg
2024-05-10_T_22-34-09.jpg (172.77 KiB) Viewed 1397 times
This last picture is kind of photoshopped by me to give you an impression, how it should look like.

My thinking is: when I give intentionally a keyword to ignore the enabled omissions, than please do so. Temporally.

I tried both
2024-05-10_T_22-48-43.jpg
2024-05-10_T_22-48-43.jpg (12.79 KiB) Viewed 1397 times
but each times it resulted in an empty results list. I also experimented without success with
2024-05-10_T_23-25-11.jpg
2024-05-10_T_23-25-11.jpg (15.43 KiB) Viewed 1397 times
The MAGIC keyword should be something like ignore-the-general-omit-and-just-show-all: and as soon it is removed from the search box, the omissions are enabled again.
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: es: URL and result-omissions:

Post by void »

Please try the following URL:

es://c:\windows\ccmcache?sort=path&path=1

? = query string
& = separate key=value pairs.
sort=path = sort by path.
path=1 = enable match path.



Currently you cannot enable or disable OMIT from a URL.
I will add support for omit=0
I will add support to enable/disable omit with a search function.

es: URL Protocol in Everything 1.5
Alex_Void
Posts: 8
Joined: Tue Jan 10, 2017 1:14 pm

Re: es: URL and result-omissions:

Post by Alex_Void »

Dear void!

This is great information! Thanks a lot! I understand, that I currently cannot enable or disable OMIT from a URL. But can I enable/disable it from normal search text?

I was too much concentrated on this URL-thing. Sorry, my mistake. The elegant way, emacs/org-mode is handling this, is that the URL is in the text file. Emacs transforms the URL into simple search text for the Search field of the Everything window.

So actually I just need
c:\windows\ccmcache sort:path show-all:

and it shows all, even the general OMIT is set and visible in the right corner below.
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: es: URL and result-omissions:

Post by void »

But can I enable/disable it from normal search text?
Currently, no.

no-omit-results: will be available in the next alpha update.
I will have an update soon.
Alex_Void
Posts: 8
Joined: Tue Jan 10, 2017 1:14 pm

Re: es: URL and result-omissions:

Post by Alex_Void »

Absolutely great - thanks a lot! 👍
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: es: URL and result-omissions:

Post by void »

Everything 1.5.0.1376a adds support for omit_results=0 and temp_omit_results=0

I have also added a no-omit-results: search modifier to disable result omissions.
Post Reply