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

target keys based on their value #75

Open
Sigma88 opened this issue Jul 4, 2017 · 0 comments
Open

target keys based on their value #75

Sigma88 opened this issue Jul 4, 2017 · 0 comments

Comments

@Sigma88
Copy link

Sigma88 commented Jul 4, 2017

I was thinking that it could be useful to have a way to target a key based on its value

let's say we have a node that looks like this:

BASKET
{
    fruit = banana
    fruit = blueberry
    fruit = lemon
}

and a patch that looks like this:

@BASKET
{
    @fruit:IS[lemon] = orange
    !fruit:IS[banana] = DEL
}

to get this output:

BASKET
{
    fruit = blueberry
    fruit = orange
}

also, having support for wildcard characters and math would be awesome, so you could do :IS[*berry] or :IS[>0]
stuff like that

I could look into implement this myself, but I'm scared by MM code xD

so for now I'm putting the idea out there to see what ppl think about it

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

1 participant