>> Notes /
Luxel: one line, whole task
This note is about Luxel, the task app with a heatmap at its heart.
The problem
Adding a task on a phone usually means a form: title, then a tag picker, a repeat picker, a time picker. That is fine once and tiring the hundredth time. Luxel's main input is a single line instead:
Gym #health &2 *mon,thu :6pm
That creates a task called "Gym", tagged health, worth 2 points, repeating on Mondays and Thursdays, with a reminder at 18:00. The task sheet still has all the pickers; the line is the fast way in.
The tokens
#tagadds a tag. Several are allowed, and letters from any language work.&1,&2,&3set the weight, which is how many points the task adds to the heatmap. The default is 1.*rulesets a repeat:*daily,*weekdays,*weekends,*mon,thu, every N days, weeks, months or years (*10d,*2w,*6m), dates of the month (*1,15), the nth weekday (*2sat), the last weekday (*lastfri) or the last day (*last).:timesets a reminder::1506,:330pm,:9am,:15.06or:15h06.
Repeats use whole numbers only. "Every 3.5 weeks" is not a rule; keeping it to integers keeps it predictable.
Choosing the symbols
The weight token started as !, then briefly became $, and is now &. The reason is the keyboard. The symbol has to be on the first symbols page of every major phone keyboard, and the keyboard must never add a space after it automatically. & passes both tests.
Invalid tokens stay in the title
A token that does not parse is not an error. *sometimes is not a valid repeat, so it simply stays in the title as text, and the task is created anyway. The same goes for a time that does not exist, like :2575. Nothing typed is lost, and nothing fails loudly on a phone keyboard where typos are normal.
When the same kind of token appears twice, the last valid one wins, except for tags, where every one counts. Editing a title in the task sheet runs the same scanner, so typing &3 into an existing title changes its weight.
Months that are too short
A task that repeats monthly on the 31st lands on the last day of shorter months, so it shows up on 30 April and 28 or 29 February instead of skipping those months. The same applies to yearly repeats.
One set of rules, twice
The home-screen widgets are native Android code, not JavaScript, and they have to agree with the app about which tasks are due. The repeat rules are therefore written as plain integer calendar maths, implemented once in TypeScript and once in Kotlin, and both are tested against the same fixture of 7,980 cases.
The trade-off
A syntax is something to learn. Most people never type more than a title and a tag, and that is fine: the tokens are optional, and an in-app page explains them for anyone who wants the fast path.