How to enable Folder search AND shortcuts to folders?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
pstein
Posts: 64
Joined: Thu Aug 07, 2014 6:18 pm

How to enable Folder search AND shortcuts to folders?

Post by pstein »

I want to search for folders AND shortcuts to folders.

How can I achieve this?

If I enable just folders then shortcuts to them are excluded.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by NotNull »

Not possible in Everything 1.4.

In Everything 1.5:

Code: Select all

folder: | <ext:lnk FOLDER_EXISTS($shortcut-target:)>
Optionally add a column for the folder/ target:

Code: Select all

add-column:A   < folder: A:=$full-path:> | <ext:lnk FOLDER_EXISTS($shortcut-target:)  A:=$shortcut-target:> 
pstein
Posts: 64
Joined: Thu Aug 07, 2014 6:18 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by pstein »

Thank you for answer.

However your solution in v1.5 is user-unfriendly.
Having to remember and enter manually

folder: | <ext:lnk FOLDER_EXISTS($shortcut-target:)>

is by far too cumbersome.

Why not add a new submenu entry in menu "Search"

- Shortcuts & symlinks

This visually intuitive solution would be the best
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by horst.epp »

pstein wrote: Wed Apr 22, 2026 6:05 am Thank you for answer.

However your solution in v1.5 is user-unfriendly.
Having to remember and enter manually

folder: | <ext:lnk FOLDER_EXISTS($shortcut-target:)>

is by far too cumbersome.

Why not add a new submenu entry in menu "Search"

- Shortcuts & symlinks

This visually intuitive solution would be the best
No one forces you to enter this more than once.
Just make a bookmark for it.
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by void »

To create a filter to search Folders and Shortcuts to Folders:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to:
    Folders and Shortcuts to Folders
  • Change the Search to:
    folder: | <ext:lnk FOLDER_EXISTS($shortcut-target:)>
  • Click OK.
Filters can be activated from the Search menu, Filter bar (View -> Filter Bar), Filter sidebar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
Filters can be organized from Search menu -> Organize filters.



To find symlinks, include the following in your search:

attrib:l


I recommend indexing file attributes under Tools -> Options -> Indexes for instant searching.



To find shortcuts and symlinks:

*.lnk | attrib:l




I would like to keep the Search menu minimal, you can add your own filters.
Thank you for the feedback.
pstein
Posts: 64
Joined: Thu Aug 07, 2014 6:18 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by pstein »

@void:

Thank you for your instructions. Some questions:

1.)

<ext:lnk FOLDER_EXISTS($shortcut-target:)>

means, that shortcuts are only listed if the target folder exists.
How do I list ALL Shortcuts (even if the target folders does not exist any more (=is moved))?

2.) How to I list symlinks only if they point to folders (not to files)?
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by void »

means, that shortcuts are only listed if the target folder exists.
How do I list ALL Shortcuts (even if the target folders does not exist any more (=is moved))?
Currently, not possible with Everything.
*.lnk will give you all shortcuts, but there's currently no function to determine if the target is a folder if the target doesn't exist.


2.) How to I list symlinks only if they point to folders (not to files)?
attrib:l FOLDEREXISTS($reparse-target:)


The reparse target will need to exist for this to work.
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by void »

I will consider a shortcut-target-is-folder property.

After looking at this a little more, you can find .lnk files that target a folder with the following search:

*.lnk READUINT32($filename:,0x18)&0x10
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: How to enable Folder search AND shortcuts to folders?

Post by NotNull »

Someone dug up the shortcut binary file format ... Respect!
Post Reply