mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #430] Set up multiple invert-filter regex in config.toml #189
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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=trueandiso=truein the config.toml file, as shown in the config example. It seems thatreverse=truegets cancelled by addingiso=true. Again, I likely did something wrong. Would be great if you could help me. Thanks again.Simo
@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.tomlfile.Regarding your second question, since now
isois not a valid configurable parameter, an error occurred when parsing theconfig.tomlfile, 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.

I will submit a PR to update this file.

@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.
@bootandy commented on GitHub (Aug 21, 2024):
Thank you @wugeer
@svm-zhang commented on GitHub (Aug 21, 2024):
@bootandy, could I expect this be implemented as a feature in the future? Thanks
@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.
@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.