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
// Name: Testing Template Shortcut Override
import "@johnlindquist/kit";
const result = await template(`($1)$0`, {
shortcuts: [
{
name: "Submit",
key: `${cmd}+enter`,
bar: "right",
// Name: Testing Template with Selection
// Shortcut: opt 7
import "@johnlindquist/kit";
const selectedText = await getSelectedText();
const templates = [
{
name: "par",
// Name: Testing Widget
import "@johnlindquist/kit";
// await hide();
await widget(`Hi there`);
// Name: Testing Widget
import "@johnlindquist/kit";
// await hide();
await widget(`Hi there`);
/*
# Markdown Journal
- Creates a new markdown file based on the day (or opens existing file)
- Opens the file in the built-in editor
- Adds a timestamp
- Auto-saves as you type
- On first run, will prompt the user to select where to store files
*/
// Name: Journal
/*
# Create a Gist
- Opens the built-in editor
- Saving automatically creates a Gist
- Opens the Gist in your browser
*/
// Name: Create Gist
// Description: Quickly Save Text as a Gist
/*
# Chat with ChatGPT
## <span class="text-primary">👉 Note: LangChain is still in development. This script will keep updating to use the latest APIs</span>
Use `Kit` -> `Manage npm Packages` -> `Update a Package` -> `langchain` to update to install the latest version.
- Opens the `chat` component
- Type a message and press `enter` to send
- The message is sent to the OpenAI API
/*
# Chat with ChatGPT
## <span class="text-primary">👉 Note: LangChain is still in development. This script will keep updating to use the latest APIs</span>
Use `Kit` -> `Manage npm Packages` -> `Update a Package` -> `langchain` to update to install the latest version.
- Opens the `chat` component
- Type a message and press `enter` to send
- The message is sent to the OpenAI API
/*
# Chat with ChatGPT
## <span class="text-primary">👉 Note: LangChain is still in development. This script will keep updating to use the latest APIs</span>
Use `Kit` -> `Manage npm Packages` -> `Update a Package` -> `langchain` to update to install the latest version.
- Opens the `chat` component
- Type a message and press `enter` to send
- The message is sent to the OpenAI API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.