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

add "not" support for alternates #365

Open
xenoterracide opened this issue Jul 31, 2021 · 2 comments
Open

add "not" support for alternates #365

xenoterracide opened this issue Jul 31, 2021 · 2 comments

Comments

@xenoterracide
Copy link

Is your feature request related to a problem? Please describe.

I'd like to be able to negate a alternate match in the filename

Describe the solution you'd like

I think something like (and I can't believe I'm suggesting the fortran operator, but for shell safety... unless you want to parse unicode https://en.wikipedia.org/wiki/Relational_operator)

example.txt##user.NE.root

and then add it's compatriot for consistency as an alias to the current behavior

example.txt##user.EQ.root

of course this could create one problem, what if you have a pattern that has a dot in it, in that case I'd guess you'd have to do 2 things, one maybe make this a toggle feature for now, and if they do toggle it, they have to use the operator if its going to be ambiguous, or they just have to do that period. You could consider then in a next major version whether to deprecate/remove the old behavior.

Describe alternatives you've considered

obviously you can use the if/else/include pattern with a template, but that's kind of cludgy if you want the whole file

@xenoterracide xenoterracide changed the title add not support for alternates add "not" support for alternates Jul 31, 2021
@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions
Copy link

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

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

No branches or pull requests

2 participants