Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
💭
Eating a taco 🌮

John Lindquist johnlindquist

💭
Eating a taco 🌮
View GitHub Profile
// Cache: true
// Trigger: f
import "@johnlindquist/kit";
let number = await arg(
{
placeholder: "numbers",
input: "o",
},
["one", "two", "three"],
// Name: Actions Example
import { Action } from "@johnlindquist/kit"
import { } from "express"
import { } from "lodash-es"
// Name: 89aa032a-be1c-46c9-9d00-f2b0ed124f55
import "@johnlindquist/kit"
// Name: 89aa032a-be1c-46c9-9d00-f2b0ed124f55
import "@johnlindquist/kit"
// Name: Testing Script Changed
// Background: auto
import "@johnlindquist/kit"
app.onScriptChanged(script => {
log(`AWESOME changed: ${script}`)
})
app.onScriptAdded(script => {
// Name: Testing Get Selected Text
import "@johnlindquist/kit"
let text = await getSelectedText()
await setSelectedText(`yay ${text}!`)
import "@johnlindquist/kit"
// prefer using the full path
let qalc = `/opt/homebrew/bin/qalc`
let currentValue = ""
await arg(
{
placeholder: "Qalculate",
enter: "Copy Result to Clipboard",
// Name: Bookmarks
// Trigger: bm
// Shortcut: opt b
import "@johnlindquist/kit"
let bookmarks = await readFile(kenvPath("bookmarks.txt"), "utf8")
let choices = bookmarks
.split("\n")
// Name: Widget Info
import "@johnlindquist/kit"
// converting video
let fullPath = await drop()
let css = `
h1{
// Name: Testing Servers
import "@johnlindquist/kit"
let servers = [
{
name: "Byte Bistro",
description: "This is the first server",
value: "server1",
},