This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menu: Chrome Bookmarks | |
// Description: Select and open a bookmark from Chrome | |
// Author: John Lindquist | |
// Twitter: @johnlindquist | |
let bookmarks = await readFile( | |
home( | |
"Library/Application Support/Google/Chrome/Default/Bookmarks" | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menu: Open Chrome Tab | |
// Description: List all Chrome tabs. Then switch to that tab | |
// Author: John Lindquist | |
// Twitter: @johnlindquist | |
let { getTabs, focusTab } = await kit("chrome") | |
let currentTabs = await getTabs() | |
let bookmarks = await readFile( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menu: Open Chrome Tab | |
// Description: List all Chrome tabs. Then switch to that tab | |
// Author: John Lindquist | |
// Twitter: @johnlindquist | |
let { getTabs, focusTab } = await kit("chrome") | |
let currentTabs = await getTabs() | |
let bookmarks = await readFile( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: JXA Chrome Tabs | |
import "@johnlindquist/kit" | |
// Name: Get Active Chrome Tab | |
import "@johnlindquist/kit" | |
let jxa = await npm("@jxa/run") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Menu: Notify Demo | |
let notifier = notify({ | |
title: "Notifications", | |
message: "Write a reply?", | |
reply: true, | |
}) | |
notifier.on("replied", async (obj, options, metadata) => { | |
await arg(metadata.activationValue) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Bookmarks | |
// Trigger: bm | |
// Shortcut: opt b | |
import "@johnlindquist/kit" | |
let bookmarks = await readFile(kenvPath("bookmarks.txt"), "utf8") | |
let choices = bookmarks | |
.split("\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: Widget Info | |
import "@johnlindquist/kit" | |
// converting video | |
let fullPath = await drop() | |
let css = ` | |
h1{ |
NewerOlder