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
| Kind | You type | You get |
|---|---|---|
| Time zones | 3pm london in tokyo _ | 23:00 <today> in tokyo (GMT+9, UTC+09:00) |
| Dates | days between 3 march and 19 september _ | 200 days (28.6 weeks) |
| Money | tip 15% on 64.20 _ | tip 9.63 · total 73.83 |
| Loans | monthly payment on 250000 at 6% over 30 years _ | 1,498.88/month (total 539,595.47, interest 289,595.47) |
| Units | convert 5 miles to km _ | 5 miles = 8.04672 km |
| Numbers | 2024 in roman numerals _ | MMXXIV |
| Spelling | nato for wilfred _ | Whiskey India Lima Foxtrot Romeo Echo Delta |
| Schedules | cron for every monday at 9 _ | 0 9 * * 1 (at 09:00 on Monday) |
| Debugging | signal 15 _ | signal 15: SIGTERM terminate, the polite kill (exit code 143) |
| HTTP | http status for not found _ | 404 Not Found |
| Ports | default port for postgres _ | postgres: 5432 |
| Colours | hex for tomato _ | tomato: #ff6347 |
| Text | slug for My Blog Post Part 2 _ | my-blog-post-part-2 |
| Encodings | base64 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