[GH-ISSUE #430] Set up multiple invert-filter regex in config.toml #189

Closed
opened 2026-06-08 11:26:03 +03:00 by zhus · 6 comments
Owner

Originally created by @svm-zhang on GitHub (Aug 15, 2024).
Original GitHub issue: https://github.com/bootandy/dust/issues/430

Hello,

Thank you for the awesome tool.

I have a question about setting up multiple invert filter REGEX in the config.toml file. I have checked the config example in the repo, as well as other tickets of similar matter. Could you please kindly show me an example?

I have also tried to add reverse=true and iso=true in the config.toml file, as shown in the config example. It seems that reverse=true gets cancelled by adding iso=true. Again, I likely did something wrong. Would be great if you could help me. Thanks again.

Simo

Originally created by @svm-zhang on GitHub (Aug 15, 2024). Original GitHub issue: https://github.com/bootandy/dust/issues/430 Hello, Thank you for the awesome tool. I have a question about setting up multiple invert filter REGEX in the config.toml file. I have checked the config example in the repo, as well as other tickets of similar matter. Could you please kindly show me an example? I have also tried to add `reverse=true` and `iso=true` in the config.toml file, as shown in the config example. It seems that `reverse=true` gets cancelled by adding `iso=true`. Again, I likely did something wrong. Would be great if you could help me. Thanks again. Simo
zhus closed this issue 2026-06-08 11:26:03 +03:00
Author
Owner

@wugeer commented on GitHub (Aug 16, 2024):

Hello, I will try to answer your question.

Regarding your first question, currently, only the following parameter is supported in the config.toml file.
image

Regarding your second question, since now iso is not a valid configurable parameter, an error occurred when parsing the config.toml file, which caused it to fall back to using the default empty configuration. In this case, the actual configuration is determined by the runtime parameters.

Now, this parameter has been replaced by output-format="si".

So you can refer to this for your config.toml content.
image

I will submit a PR to update this file.
image

<!-- gh-comment-id:2293113219 --> @wugeer commented on GitHub (Aug 16, 2024): Hello, I will try to answer your question. Regarding your first question, currently, only the following parameter is supported in the `config.toml` file. ![image](https://github.com/user-attachments/assets/5aa1b781-5e98-4251-ba64-9a5806dd6ce9) Regarding your second question, since now `iso` is not a valid configurable parameter, an error occurred when parsing the `config.toml` file, which caused it to fall back to using the default empty configuration. In this case, the actual configuration is determined by the runtime parameters. Now, this parameter has been replaced by `output-format="si"`. So you can refer to this for your config.toml content. ![image](https://github.com/user-attachments/assets/0f5baeb0-5ee1-46aa-b821-3f39f99e64e4) I will submit a PR to update this file. ![image](https://github.com/user-attachments/assets/2fe93b64-70cf-4334-a79d-b27f77507c1b)
Author
Owner

@svm-zhang commented on GitHub (Aug 16, 2024):

@wugeer, much appreciate your help. It makes sense. Hopefully, we could specify multiple REGEXs in an array in the TOML file in the future. I will keep using alias for now.

<!-- gh-comment-id:2293259805 --> @svm-zhang commented on GitHub (Aug 16, 2024): @wugeer, much appreciate your help. It makes sense. Hopefully, we could specify multiple REGEXs in an array in the TOML file in the future. I will keep using alias for now.
Author
Owner

@bootandy commented on GitHub (Aug 21, 2024):

Thank you @wugeer

<!-- gh-comment-id:2302641055 --> @bootandy commented on GitHub (Aug 21, 2024): Thank you @wugeer
Author
Owner

@svm-zhang commented on GitHub (Aug 21, 2024):

@bootandy, could I expect this be implemented as a feature in the future? Thanks

<!-- gh-comment-id:2302736102 --> @svm-zhang commented on GitHub (Aug 21, 2024): @bootandy, could I expect this be implemented as a feature in the future? Thanks
Author
Owner

@bootandy commented on GitHub (Sep 3, 2024):

I never thought people would want to put a regex filter in config, let alone multiple, but yes I think we can add that.

<!-- gh-comment-id:2327408346 --> @bootandy commented on GitHub (Sep 3, 2024): I never thought people would want to put a regex filter in config, let alone multiple, but yes I think we can add that.
Author
Owner

@svm-zhang commented on GitHub (Sep 11, 2024):

Thank you. I am learning Rust and if I feel comfortable with it in the near future, I will try to implement it and have a PR, given that this is likely a rare use case.

<!-- gh-comment-id:2344246024 --> @svm-zhang commented on GitHub (Sep 11, 2024): Thank you. I am learning Rust and if I feel comfortable with it in the near future, I will try to implement it and have a PR, given that this is likely a rare use case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#189