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

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

Open
nathaneltitane opened this issue Oct 20, 2024 · 1 comment
Open

Comments

@nathaneltitane
Copy link

nathaneltitane commented Oct 20, 2024

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
Copy link

app4soft commented Oct 20, 2024

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:

  • 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 #941 issues.

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

2 participants