talonvoice / beta

Issue tracker for the private Talon Beta
10 stars 0 forks source link

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

Closed dwiel closed 3 years ago

dwiel commented 3 years ago
<number>: insert("{number}")
---
>>> actions.mimic("zero zero one")
{'phrase': ['zero', 'zero', 'one'], 'parsed': C(None, 1)}
1>>> 1
lunixbochs commented 3 years ago

<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 commented 3 years ago

<digits_string> sounds good to me.

lunixbochs commented 3 years ago

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