leozide / leocad

A CAD application for creating virtual LEGO models
https://www.leocad.org
2.48k stars 211 forks source link

Catgories filter syntax - do not show '~' parts in categories #946

Open nathaneltitane opened 1 week ago

nathaneltitane commented 1 week ago

image

Category name: Rim Category Filter: ^%Wheel Rim & !(%= | %_ | ^Pattern | ^Sticker)

­'~' parts are showing at end of category

How do I prevent parts starting with special characters in general from appearing in custom categories?

@app4soft any related issue or trick to help? Thanks

app4soft commented 1 week ago

Its probably somehow related to how LeoCAD handles "Helpers"/"Third Party" parts, which has | symbol in the title:

  1. Parts with ~_=| prefixes are shown in "All Parts" list;
  2. But, parts with | in the prefixes are not shown in appropriate categories, even such parts has !CATEGORY command defined.
  3. If create a new category with matching keywords, parts with | in the prefixes appears in a such new category;
  4. All parts with | in the prefixes are recognized as "Decorated Parts", even there are parts not decorated at all.

I'm not sure its possible to hide parts with ~ symbol in the title (if only not just manually edit all the categories in "Properties > Categories")

@leozide, I propose to add 4 extra checkboxes in "Properties > Categories" to show/hide parts with special prefix symbols:

This would solve both, this and https://github.com/leozide/leocad/issues/941 issues.