Shortcodes

Shortcodes require Kit-1.3.0-beta.6.dmg

Shortcodes are like writing acronyms to quickly get to specific choices of a script.

To run the following script and select "Banana" and "Cookie" type "a", space, "b", space, "c":

// Shortcode: a
let fruit = await arg("Type 'b' then spacebar", [
{
name: "Apple",
value: "apple",
},
{
name: "Banana",
value: "banana",
shortcode: "b",
},
])
let treat = await arg("Type 'c' then spacebar", [
{
name: "Donut",
value: "donut",
},
{
name: "Cookie",
value: "cookie",
shortcode: "c",
},
])
await arg(`${fruit}, ${treat}`)

Shortcodes also enable "English" shortcuts. From the main menu, type "go fish " or "go eat " to quickly drill down to one of these choices:

//Shortcode: go
let message = await arg("Where?", [
{
name: "Lunch",
shortcode: "eat",
value: "Gone out to lunch",
},
{
name: "Fishing",
shortcode: "fish",
value: "Gone fishin'",
},
])
await arg(message)
Discuss Post