Lookup blanks

A keyword, an argument, then _. The value is fetched by a local script or API call and inserted in place of the request.

Lookup blanks: weather, definitions, prices

Keyword, argument, underscore

The keyword selects the blank; the rest of the line is its input.

you type

weather london _

you get

London: 22°C Mostly clear

you type

define ephemeral _

you get

ephemeral: Something which lasts for a short period of time.

A request naming its subject (weather london _) is replaced by the value, inserted selected. A bare keyword (volume _) keeps the keyword as a label in front of its value.

Each blank is a folder

~/.cues/blanks/<name>/: a config file and, for script blanks, the script.

The config (BLANK.md) declares the trigger keywords and how the value is produced. Shipped blanks are built the same way as ones you add, so writing a new lookup is the same job as reading an existing one. 17 folders ship with the install.

KeywordReturns
weather <place>current temperature and conditions
define <word>a dictionary definition
volumethe system volume; keys then adjust the device
note <words>a snippet you saved earlier

Slow lookups show a spinner

weather london -

A lookup that reaches the network shows a spinner in the slot until the value arrives, so a stalled request is distinguishable from a running one.

Arguments are required where the lookup needs one

The weather blank takes a place named in the request (weather london _); a bare weather _ queries its default city, London.