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
//
// NMDefaults.h
// nmlib
//
// Created by Nicholas Moore on 21/12/2023.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
#popclip
name: DevDocs
identifier: com.pilotmoon.popclip.extension.devdocs
popclip version: 4151
url: https://devdocs.io/#q={popclip text}
icon: iconify:game-icons:cat
description: Search devdocs.io
app:
name: devdocs.io
link: https://devdocs.io
#popclip
name: Iconify
identifier: com.pilotmoon.popclip.extension.iconify
description: Search icons on Iconify
popclip version: 4151
icon: iconify:simple-icons:iconify
app: { name: Iconify, link: https://icon-sets.iconify.design/ }
url: https://icon-sets.iconify.design/?query=***
#popclip
name: OpenStreetMap
identifier: com.pilotmoon.popclip.extension.openstreetmap
description: Search OpenStreetMap
popclip version: 4151
keywords: maps
icon: iconify:simple-icons:openstreetmap
url: https://www.openstreetmap.org/search?query=***
app: { name: OpenStreetMap, link: https://www.openstreetmap.org/ }
Reply to user requests for PopClip extension snippets, based on the examples in the cookbook enclosed in triple quotes (""") below.
Do not invent your own extension format or configuration keys, but instead closely follow the format in the examples.
As a test, reply with a snippet to search YouTube.
"""
# PopClip Extensions Cookbook
// #popclip
// name: Reformat Date
// icon: symbol:calendar
// description: Convert date to either DD-MMM-YYYY or YYYY-MM-DD.
// options:
// - { identifier: style-mmm, label: "DD-MMM-YYYY", type: boolean, icon: "monospaced square filled MMM" }
// - { identifier: style-iso, label: "YYYY-MM-DD", type: boolean, icon: "monospaced square filled ISO" }
// language: javascript
// module: true
//
// #popclip transform ip-10-248-153-153.ec2.internal to 10.248.153.153
// name: IPExtract
// language: javascript
// module: true
exports.regex = /(\d{1,3})-(\d{1,3})-(\d{1,3})-(\d{1,3})/;
exports.action = () => popclip.pasteText(popclip.input.regexResult.slice(1).join("."));
@pilotmoon
pilotmoon / submit-extension.md
Last active May 22, 2024 10:42
Submitting to the PopClip Extensions Directory from your own repo
author
Nick Moore

PopClip Directory Submission

All extensions on the directory need to be hosted as public repositories on GitHub.

The directory server downloads and stores your repository contents every time you create a git tag. It only does this once for every tag. This ensures that the contents served for a specific version can never change.

#popclip
name: Presearch
identifier: com.pilotmoon.popclip.extension.presearch
description: Search Presearch, the decentralized search engine.
icon: iconify:arcticons:presearch
popclip version: 4151
app: { name: Presearch, link: https://www.presearch.io/ }
url: https://presearch.com/search?q=***
// #popclip
// name: ChatGPT Website
// identifier: com.pilotmoon.popclip.extension.chatgpt-website
// description: Start a new chat on the ChatGPT Website.
// icon: square filled scale=85 iconify:simple-icons:openai
// popclip version: 4586
// language: javascript
// module: true
exports.options = [
{