Skip to content

Comments

Allow defining own infix formatter#183

Open
skullim wants to merge 1 commit intoemabee:mainfrom
skullim:feature/add-custom-infix-formatting
Open

Allow defining own infix formatter#183
skullim wants to merge 1 commit intoemabee:mainfrom
skullim:feature/add-custom-infix-formatting

Conversation

@skullim
Copy link

@skullim skullim commented Nov 10, 2024

I created a draft that allows defining a user-specific infix. This has a use case when e.g. there is some external tool that expects the log files to have a certain name.

There are probably some corner cases still to be handled and some work to split the functionality into separate/different files. This can be done once the general idea is accepted.

I think it would be good to also handle "_" separator, but it seems it requires quite some work.

InfixFilter::StartsWth(s) => infix.starts_with(s),
InfixFilter::Equls(s) => infix.eq(s),
InfixFilter::None => false,
InfixFilter::None => true,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emabee I was not sure about semantics of None variant, should it filter all or none? If former then I would create a new variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants