FAQ

Home > FAQs > Calculators and tables

Can I get time zones, NATO spelling and cron lines while typing?

Yes. Set table-lookups-mode: on, then type the request and a _: 3pm london in tokyo _, nato for wilfred _, cron for every monday at 9 _. The answer is computed by code on your machine, with no model call and no network, and it replaces the request where you typed it.

Turning it on

It is off by default. Add the line table-lookups-mode: on to ~/.cues/OPENCUES.md, or pick it in the settings blank (opencues settings _). A running host picks the change up without a restart. Off, the calculators and tables are not loaded and cost nothing.

What you can ask

KindYou typeYou get
Time zones3pm london in tokyo _23:00 <today> in tokyo (GMT+9, UTC+09:00)
Datesdays between 3 march and 19 september _200 days (28.6 weeks)
Moneytip 15% on 64.20 _tip 9.63 · total 73.83
Loansmonthly payment on 250000 at 6% over 30 years _1,498.88/month (total 539,595.47, interest 289,595.47)
Unitsconvert 5 miles to km _5 miles = 8.04672 km
Numbers2024 in roman numerals _MMXXIV
Spellingnato for wilfred _Whiskey India Lima Foxtrot Romeo Echo Delta
Schedulescron for every monday at 9 _0 9 * * 1 (at 09:00 on Monday)
Debuggingsignal 15 _signal 15: SIGTERM terminate, the polite kill (exit code 143)
HTTPhttp status for not found _404 Not Found
Portsdefault port for postgres _postgres: 5432
Colourshex for tomato _tomato: #ff6347
Textslug for My Blog Post Part 2 _my-blog-post-part-2
Encodingsbase64 for hello _aGVsbG8=

The time-zone answer carries the day you ask on. Beyond these, the families cover durations and working days, percentages and VAT, number formatting, geometry, physics, fitness and media, and text work over your draft such as a word count or a change of case.

Why you can trust the answer

Every answer is arithmetic over the words you typed, or a row in a table that ships with OpenCues. No model writes it, so it cannot be wrong the way a generated answer can, and nothing leaves your machine. The rule of thumb for what belongs here: if the answer will be the same in ten years. Anything live, such as prices, weather or exchange rates, stays with the lookups that fetch it.

When a table does not know

A request no table knows fires nothing, and the _ goes to the normal lookup instead, so a miss costs nothing. convert and calc only claim the _ when a number follows, so convert this to markdown _ stays a rewrite request.

Your sentence stays yours

The answer replaces the request, and anything you wrote before it stays: ok done. hex for tomato _ becomes ok done. tomato: #ff6347.

Taking an answer back

With the cursor on the answer, the note reads was: nato for wilfred _ with (underscore to revert). Press _ and your request is back; press it again and the answer returns, without the lookup running a second time. undo _ reverts it too.

Related: Calculators and reference tables · Math in any text box · What is a blank? · GitHub repo