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

Is there a way to set the wild char when type in pattern? #89

Closed
woshichuanqilz opened this issue Jan 2, 2023 · 1 comment
Closed

Comments

@woshichuanqilz
Copy link

woshichuanqilz commented Jan 2, 2023

Sometimes when I meet the pattern "j=" "k+" "k_" which is hard to

press the second char. So is there a way to set a wild char to match any char?

For example I press "j*" can match any two char pattern start with j

@ggandor
Copy link
Owner

ggandor commented Jan 2, 2023

You can use equivalence_classes (mutual aliases), but wildcard characters like in your suggestion are impossible if you want ahead-of-time displayed labels. Think about it: when targeting k+, after pressing k, the plugin cannot know whether you will type + or * (the wildcard character), so it cannot decide which label to show (the labels are different in the two cases, since the wildcard would match a lot more targets).

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

2 participants