File filter appears to fail on jar file

15 views
Skip to first unread message

Arthur Goldberg

unread,
Oct 18, 2022, 8:49:34 AM10/18/22
to BBEdit Talk
I like to use BBEdit's file filters. This filter rejects files with "/build/" in their paths.
filter.jpg
But the results nevertheless contain matches in files in a jar (java archive) that has "/build/" in its pathname:
results.jpg
Is this a bug? Is there a way to properly filter these results?
Thanks
Arthur

Patrick Woolsey

unread,
Oct 18, 2022, 9:01:09 AM10/18/22
to bbe...@googlegroups.com
Simplifying the matter a bit :-), file and folder filters apply only to content that is accessible via the filesystem, but this does not extend to the contents of compressed archives.

You can however prevent BBEdit from searching within such archives by turning OFF the option to "Search compressed files" in the Options dialog of the Multi-File Search window.


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>



> On Oct 17, 2022, at 19:37, Arthur Goldberg <artgo...@gmail.com> wrote:
>
> I like to use BBEdit's file filters. This filter rejects files with "/build/" in their paths.
> <filter.jpg>
> But the results nevertheless contain matches in files in a jar (java archive) that has "/build/" in its pathname:

Kevin Shay

unread,
Oct 18, 2022, 10:56:23 AM10/18/22
to bbe...@googlegroups.com
Simplifying the matter a bit :-), file and folder filters apply only to content that is accessible via the filesystem, but this does not extend to the contents of compressed archives.

From the screenshot, though, it looks like the relevant pattern was in the filesystem path *to* the JAR, rather than the path of the compressed file within it? In other words, I would expect the filter to prevent it from looking at that archive in the first place. Maybe that would be a feature request rather than a bug report, if it's behaving as currently intended...

Kevin

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/0E5C7970-4952-416E-9DDB-FEB4E0EF7525%40barebones.com.

Patrick Woolsey

unread,
Oct 18, 2022, 11:23:04 AM10/18/22
to bbe...@googlegroups.com
On Oct 18, 2022, at 09:46, Kevin Shay <y2k...@gmail.com> wrote:
>
> [PW said:]
>> Simplifying the matter a bit :-), file and folder filters apply only to content that is accessible via the filesystem, but this does not extend to the contents of compressed archives.
>>
> From the screenshot, though, it looks like the relevant pattern was in the filesystem path *to* the JAR, rather than the path of the compressed file within it? In other words, I would expect the filter to prevent it from looking at that archive in the first place. Maybe that would be a feature request rather than a bug report, if it's behaving as currently intended...


Please note a file filter does not prevent BBEdit from looking for potential matches, but instead controls which files BBEdit will actually search.

If you wish to exclude specific directories from being searched at all, you can do so with a _folder filter_.


Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>



[PS: For anyone who's interested :-), I recommend you see the "File Filter" and "Folder Filter" sections in Chapter 7 of the PDF manual (pages 174 and 176 respectively in the current edition).]
Reply all
Reply to author
Forward
0 new messages