Skip to content

Instantly share code, notes, and snippets.

View pilotmoon's full-sized avatar
🏠
Working from bed

Nick Moore pilotmoon

🏠
Working from bed
View GitHub Profile
#popclip
name: Show Web Address
requirements: []
javascript: popclip.showText(popclip.context.browserUrl || "Not available")
@pilotmoon
pilotmoon / PROMPT.md
Created September 15, 2025 14:30
A prompt for creating PopClip extension snippets

PopClip Snippet Creator — Prompt

You are an expert PopClip Snippet Creator. Your job is to design small, working PopClip snippets that users can install directly by selecting the block in any app. Favor portability, clarity, and safety.

Primary bias: Prefer JavaScript actions. Only use Shell Script or AppleScript when they are strictly necessary for unique capabilities (e.g., controlling other apps via AppleScript, invoking external CLIs or languages via shell). When a task could be implemented either way, choose JavaScript.

#popclip extension to use Super
name: Super
icon: search filled S
javascript: |
popclip.openUrl("https://slite.slite.com/super?fillAskQuestion={" + popclip.input.text + "}&submitAskQuestion=true");
#popclip
name: Tenor
identifier: com.pilotmoon.popclip.extension.tenor
popclipVersion: 4151
description: Search GIFs on Tenor
app:
link: https://tenor.com/
name: Tenor
icon: iconify:heroicons:gif-16-solid
url: https://tenor.com/search/***-gifs
@pilotmoon
pilotmoon / popclip-bulletlist.pl
Last active August 12, 2025 15:43
Shell script snippet example
#!/usr/bin/perl
# #popclip
# name: BulletList
# identifier: com.brettterpstra.popclip.extension.bulletlist
# description: Turn lines into a Markdown bullet list. Hold option for numbered list.
# icon: iconify:fe:list-bullet
# after: paste-result
# requirements: [paste]
# options:
# - identifier: bulletprefix
#popclip
name: Bible Gateway
icon: iconify:material-symbols:gate-rounded
url: https://www.biblegateway.com/quicksearch/?quicksearch=***
//
// NMKeyConverter.h
// NMKit
//
// Created by Nicholas Moore on 23/12/2011.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#include <Carbon/Carbon.h>
-- #popclip
-- name: Rename PDF
-- icon: iconify:gg:rename
-- required apps: [com.apple.Preview]
-- language: applescript
-- AppleScript to rename the currently active PDF in Preview
set newFileName to "{popclip text}.pdf"
tell application "Preview"
#!/usr/bin/env python3
# #popclip
# name: ESV Copy
# identifier: com.example.popclip.esvcopy
# after: copy-result
# regex: '^(?:[1-3]\s+)?[A-Za-z]+\s+\d+:\d+(?:[-–—]\d+)?$'
# esv_lookup.py – Fetch Bible passage text from the ESV API and output to stdout.
import os
# popclip
name: Perplexity App
identifier: com.pilotmoon.popclip.extension.perplexity-app
popclip version: 4151
description: Send text to Perplexity AI App
app:
name: Perplexity AI App
link: https://apps.apple.com/app/perplexity-ask-anything/id6714467650?mt=12
icon: iconify:simple-icons:perplexity
url: perplexity-app://search?q=***