Skip to content

Add negative anchors/anchor negation #137

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

Closed
brxck opened this issue Jun 2, 2020 · 3 comments
Closed

Add negative anchors/anchor negation #137

brxck opened this issue Jun 2, 2020 · 3 comments

Comments

@brxck
Copy link

brxck commented Jun 2, 2020

It would be useful to specify whether commands shouldn't begin or end a group.

If I had a repeat command:

<number>: core.repeat_command(number-1)

I would like the command to only activate after another command.

"dot five" - .....
"five" or "five dot" - should not trigger

@lunixbochs
Copy link

lunixbochs commented Oct 30, 2020

I understand the need, but my hesitation around this, is it changes Talon from 4 command groups with 7 paths between them, to 9 command groups with 31 paths between them. I think it may have a pretty bad effect on grammar complexity and performance :(

@brxck
Copy link
Author

brxck commented Oct 30, 2020

May not be worth it considering I haven't run into a need for this since! After a bugfix in talon a while back this example can be handled with two rules:

^<number>: skip ()
​<number>: core.repeat_command(number-1)

@lunixbochs lunixbochs transferred this issue from talonvoice/beta Nov 2, 2020
@lunixbochs
Copy link

I'm not going to do this anytime soon due to the grammar complexity, closing.

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