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
Try to find an approximate match by popping the pattern list #40
Comments
I'm not into this. I'll leave this open for a while, in case anyone else wants to opine, but for now I'm not |
IMHO, the functionality described above is nice, yet it shall be built into a different project. I recall reading something... let me try to find it. |
Maybe the behavior could be enabled through an environment variable and disabled by default. |
Sorry for necro, I typed this all up before seeing the last post is 5 months in the past, and don't want to let it go to waste. What happens if you type So you would have to remove a parameter, check if you get a match, if not, put it back and check the next, if you don't get a match on any of them, start removing two params, ... You could probably do that, but it's not very friendly. I don't know how the list of results is generated, but if it works using some kind of ANDs on the results, you could add a switch that tells z to match using OR instead of AND, making parameters optional, if you understand what I mean. |
Arguments are treated as regular expressions, and they are ANDed together. it's perfectly feasible to have a single argument with regex or in it e.g. |
If
z foo bar baz
yields no matches and ifz foo bar
does, I'd like to be taken to that match when I isssue the first command.So, I think it would be a good idea to pop the tokens list until either it's empty or a match was found.
The text was updated successfully, but these errors were encountered: