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

<number> doesn't output leading 0s #124

Closed
dwiel opened this issue Sep 22, 2020 · 3 comments
Closed

<number> doesn't output leading 0s #124

dwiel opened this issue Sep 22, 2020 · 3 comments

Comments

@dwiel
Copy link

dwiel commented Sep 22, 2020

<number>: insert("{number}")
---
>>> actions.mimic("zero zero one")
{'phrase': ['zero', 'zero', 'one'], 'parsed': C(None, 1)}
1>>> 1
@lunixbochs
Copy link

<number> and <digits> are statically typed to return an int which can't have leading zeroes, if you want a digits capture named in core talon that returns a string e.g. <digit_string> I'm open to suggestions

@dwiel
Copy link
Author

dwiel commented Sep 23, 2020

<digits_string> sounds good to me.

@lunixbochs
Copy link

v0.1.2 has digit_string, (named to avoid a double s)

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