Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude folders #138

Open
marium0505 opened this issue May 2, 2020 · 2 comments
Open

Exclude folders #138

marium0505 opened this issue May 2, 2020 · 2 comments

Comments

@marium0505
Copy link

marium0505 commented May 2, 2020

Hey,

Is it possible to avoid folders from showing up as results? I only want files to be matched.
I found a temporary workaround by using "[.extension_here]$" (that worked sometimes, but definitely not always), but it isn't always easy/possible to provide do that, so would be nice with a checkbox or something specifically to avoid matching folders.

Note: I do not want to avoid matching files in specific folders. I just don't want to have folders show up as a result, it if matches the string used in "File Names match" field (btw, that is kind of misleading as it could suggest that it shouldn't match folders?).

@stefankueng
Copy link
Owner

you can always just sort by size after the search is done - that way the folders (which have a size of zero) will be at one end of the sorted list.

@garry-ut99
Copy link

garry-ut99 commented Oct 14, 2023

you can always just sort by size after the search is done - that way the folders (which have a size of zero) will be at one end of the sorted list.

Or by extension, because most folders don't have extensions.

Anyway, the both workarounds : "by size" or "by ext", are not a perfect solution to the problem because:

  • sometimes some files have no extension either and/or have a size of zero
  • also sometimes some folders have extensions

Thus if the results window contains many files & folders, some of them will be mixed together regardless of the sorting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants