Popclip
Updated Published 1 min read
Extensions
Popclip offers many extensions, I like these:
- Activate alfred
- Brackets
- Character / Word Count
- Formatting
- Run in Terminal
- Sort selected Lines
- ChatGPT ai? (no note with this name)
Extension Snippets
It is possible to create extensions using code snippets. Here are some of my own creations:
Prompt
Use this prompt with ChatGPT? (no note with this name) to quickly create extensions.
I want you to act as a PopClip extension creator. I will describe what the extension should do, and you should reply with the extension code, with no additional text.
Here is an example of a PopClip extension:
// #popclip
// name: Remove Periods
// icon: •X
// language: javascript
const noPeriodsText = popclip.input.text.replace (/ /g, "');
popclip.pasteText (noPeriodsText);
Note the name should be short (16 chars or less) and the icon should be one or two characters.
As a test, please create an extension to make the text all caps.
Copy URL from address bar as markdown link with title
# (inspired by https://forum.popclip.app/t/copy-from-address-bar-as-markdown-url-with-title/293/5)
# popclip extension to copy URL from address bar as markdown with title
name: Copy +MD Link
title: Copy
icon: symbol:doc.on.doc
javascript: |
if (popclip.input.text === popclip.context.browserUrl) {
popclip.copyText(`[${popclip.context.browserTitle}](${popclip.input.text})`)
} else {
popclip.performCopy()
}
Get redirect using my api
# popclip extension to get redirect from my api
name: Redirect API
title: Redirect
icon: symbol:arrow.up.arrow.down.circle
url: https://dnnsmnstrr.vercel.app/api/redirect/***
Quickly spend time for a daily on Gitlab
# popclip extension to spend time on gitlab
name: Gitlab Time Tracking
title: Spend
icon: symbol:clock
javascript: |
popclip.pressKey('R')
const time = popclip.input.text.trim()
return '/spend ' + time
after: paste-result
Extension-API
Documented here: https://github.com/pilotmoon/PopClip-Extensions
***or{popclip text}- Selected text
Links from this note 3
- AlfredA customizable version of the macOS Spotlight tool. Recently, I have mainly been using raycast, which supports most of the main features of Alfred and has a better store, so this…
- RedirectingWhile working on my api, I figured out a way to set up a system of dynamic redirects with alias matching. This means I can define multiple links that all redirect to a specific…
- APIMy personal api is available at https://dnnsmnstrr.vercel.app/api/ Available routes: Route Description /dennis Returns information about me /events A list of events in my life…