By Default - Excluding all files that end with .url or .lnk

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
parisi
Posts: 9
Joined: Tue Sep 15, 2015 7:37 pm

By Default - Excluding all files that end with .url or .lnk

Post by parisi »

Hi All,

I would like to, by default, exclude all files that end with ".url" or ".lnk".



Any thoughts?

Thanks,
Paul.
parisi
Posts: 9
Joined: Tue Sep 15, 2015 7:37 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by parisi »

It never fails - moments after asking the question I figure it out...

I just added !.url !.lnk to the search window and was able to save it as a Search...

It would be nice if there was some sort of drop down to remind you which "search" is current and be able to change it.

Thanks,
Paul.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by NotNull »

parisi wrote: Wed Jan 19, 2022 7:56 pm It never fails - moments after asking the question I figure it out...
I know the feeling :D

One option:
  • Type the following in the search bar:
    !ext:url;lnk
  • Menu:Search > Add to Filters
  • Give your new filter a name; something like No shortcuts
  • Enable the filter bar: Menu:View > Filters
    Now you can select your No shortcutsfilter from the dropdown list next to the search bar.
  • Select your default filter: Menu:Tools > Options > General > Home : Filter = No shortcuts
    Now every time you open Everything, the No shortcuts filters will be selected.
The currently active filter will also be shown in the status bar (except for the "Everything" filter). You can also right-click that to change your filter.
parisi
Posts: 9
Joined: Tue Sep 15, 2015 7:37 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by parisi »

Thank you - I was almost there.

Appreciated the help!
parisi
Posts: 9
Joined: Tue Sep 15, 2015 7:37 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by parisi »

Ok - so trying to approach perfection - see if this can be solved.

I did as you recommended. I click on a row, the click back into the search text field and it selects my "!.url !.lnk " - which if I just type, gets typed over.

So first click selects it all, then second click I can enter my new search terms...

BTW - I just read yours more closely and have used !ext:url;lnk

Thoughts?
Thanks again,
Paul.
Last edited by parisi on Wed Jan 19, 2022 8:19 pm, edited 1 time in total.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: By Default - Excluding all files that end with .url or .lnk

Post by raccoon »

You also said "by default" so I assume you mean "all the time." One way to accomplish this is to Exclude these filetypes from ever being indexed in the first place.

Tools -> Options -> Indexes -> Exclude -> Exclude files: *.url;*.lnk
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by NotNull »

What would you like to happen when you go back to the search bar?
parisi
Posts: 9
Joined: Tue Sep 15, 2015 7:37 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by parisi »

Sorry, let me try to be clearer...

I have my new Search saved and it automatically opens when I launch everything. This includes the !ext:url;lnk exclusion.

The text !ext:url;lnk is in the search box when I open Everything. Good so far.

When I click in the Search box the cursor selects the text there (!ext:url;lnk) and I have either click a second time or press the right arrow to be able to change my search.

I don't think this is possible to fix.

Thanks,
Paul.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by NotNull »

Enter the following search in the Everything search bar and press ENTER:

Code: Select all

/select_search_on_mouse_click=0

Optional:
Enter the following search in the Everything search bar and press ENTER:

Code: Select all

/search_edit_move_caret_to_selection_end=1
This will move the cursor to the end of the query when you click in the searchbar.
/search_edit_move_caret_to_selection_end=0 will position the cursor where you click.


A bit closer to perfection?


BTW": Did you save your search as a bookmark or as a filer? A filter usually doesn't show the search text.
parisi
Posts: 9
Joined: Tue Sep 15, 2015 7:37 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by parisi »

One way be to click and have the cursor at the end of the current text, this would be an option when the Search Filter is created/saved.

My ideal would be to have a UI check box or radio button that turns off the exclusions !ext:url;lnk.

I.e. the search text is not in the Search text.

Just an exclusions button that shows what you are turning off and on. Or perhaps two search boxes, one for general settings like my exclusions and another to type what you are searching for. With a check box.

WAIT - now that I try it again after restarting ET, the search box does not have the !ext:url;lnk verbs in it. So maybe it just is set in the background and the only way you know is by looking at the current Search that is chosen.

Here is one idea:
2022-01-19_15-37-52.png
2022-01-19_15-37-52.png (164.96 KiB) Viewed 3084 times
I understand the rat hole this could become.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: By Default - Excluding all files that end with .url or .lnk

Post by NotNull »

parisi wrote: Wed Jan 19, 2022 8:47 pm One way be to click and have the cursor at the end of the current text
See the post before yours.
parisi wrote: Wed Jan 19, 2022 8:47 pm My ideal would be to have a UI check box or radio button that turns off the exclusions !ext:url;lnk.
Different than switching between back and forth between the "Everything -lnk and url" and "Everything" filter?
parisi wrote: Wed Jan 19, 2022 8:47 pm WAIT - now that I try it again after restarting ET, the search box does not have the !ext:url;lnk verbs in it. So maybe it just is set in the background and the only way you know is by looking at the current Search that is chosen.
Menu:View > Go to > Home (or pressing ALT + HOME) to start clean.
Post Reply