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: Move Mouse to Active App
// Background: true
import "@johnlindquist/kit"
import { getFrontmostApp } from "@johnlindquist/mac-frontmost"
import { shakeCursor } from "@johnlindquist/mac-cursor-effects"
let windowID = ""
let windowTitle = ""
let recentlyClicked = false
// Name: Move Mouse to Active App
// Background: true
import "@johnlindquist/kit"
import { getFrontmostApp } from "@johnlindquist/mac-frontmost"
import { shakeCursor } from "@johnlindquist/mac-cursor-effects"
import pkg from "uiohook-napi"
const { uIOhook } = pkg
let windowID = ""
// Name: Move Mouse to Active App
// Background: true
import "@johnlindquist/kit"
import { getFrontmostApp } from "@johnlindquist/mac-frontmost"
import { shakeCursor } from "@johnlindquist/mac-cursor-effects"
import pkg from "uiohook-napi"
const { UiohookKeyboardEvent, UiohookKey, UiohookMouseEvent, uIOhook } = pkg
let bundleIdentifier = ""
// Name: Filter Scripts
// Shortcut: opt 7
// Cache: true
import "@johnlindquist/kit"
let kenv = "kit-examples"
let scripts = (await getScripts()).filter(script => script.kenv === kenv)
// Name: List Kit Examples Scripts
// Shortcut: opt 7
// Cache: true
import "@johnlindquist/kit"
import { parseScript } from "@johnlindquist/kit/core/utils"
import { globby } from "globby"
let kenv = "kit-examples"
// Name: List Kit Examples Scripts
// Shortcut: opt 7
// Cache: true
import "@johnlindquist/kit"
import { parseScript } from "@johnlindquist/kit/core/utils"
import { globby } from "globby"
let kenv = "kit-examples"
// Name: List Kit Examples Scripts
// Shortcut: opt 7
// Cache: true
import "@johnlindquist/kit"
import { parseScript } from "@johnlindquist/kit/core/utils"
import { globby } from "globby"
let kenv = "kit-examples"
/*
# Fix - Commit and Push
- Gets the current git branch name
- Takes input of the fix type and a short message
- Formats the commit message
- Adds, commits and pushes the changes to the remote branch
> Make sure you have the necessary permissions to push changes to the remote repository.
*/
// Menu: Open Project
// Description: Opens a project in code
// Shortcut: cmd shift .
// Cache: true
// Reminder: If the window isn't showing up, hit ⌘+0 from the main window to
// bring it to the center
import "@johnlindquist/kit"
import path from "path"
import fs from "fs"
// Name: CRUD Flags
import "@johnlindquist/kit"
let choices = ["One", "Two", "Three"]
let flags = {
create: {
name: "Create a New One",
},
read: {