leocad icon indicating copy to clipboard operation
leocad copied to clipboard

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

Open nathaneltitane opened this issue 1 year ago • 1 comments

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

nathaneltitane avatar Oct 20 '24 17:10 nathaneltitane

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

  • https://github.com/leozide/leocad/issues/941#issuecomment-2419000519
  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:

  • Show parts with special prefixes
    • [*] ~ (Subparts)
    • [*] = (Aliases)
    • [*] | (Helpers and Third Party parts)
    • [ ] _ (Physical colour parts) — this should be turned off by default.

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

u2fly avatar Oct 20 '24 17:10 u2fly