Brett’s PopClip Extensions

This is a collection of my own extensions for the Mac app PopClip. It gives you a popup when you select text, a la iOS, and lets you perform various operations on/with it.

Many of my extensions are Markdown-related, but there are a few other goodies in there, too.


To install from the download package, just unzip and double-click the extensions you want to use. To install from the source code, just make sure the extension of a folder is .popclipext and double click it in Finder.

If an extension is already installed, double clicking the downloaded one will just update the existing extension. There’s no need to uninstall before moving on to the latest fun.

Current release version: 1.44.3 (source code)_


The extensions currently included in the bundle. Some are available elsewhere as well, but this collection will always be the most up-to-date versions.


Turn indented text (or any text) into nested Markdown blockquotes.

  • Clicking adds a “>” for each indentation level in the selected text
  • Command-click to decrease quote level
  • Command-Option-click key to remove all quoting

When adding quote levels, multiple line breaks between lines creates separate block quotes (by design). If there’s a single blank line between to paragraphs, they’ll be joined together as paragraphs within a blockquote. More than one starts a new quote.


PopClip extension to turn lines of text into Markdown bullet items. Indentation is handled as nested lists and existing markers are overwritten (numbered list becomes bullet list).

Numbered lists

Holding Option (⌥) while clicking the button for the extension in the PopClip bar will create/update a numbered list instead. When the list is already a numbered list, it will be re-numbered to fix any gaps or out-of-order numbering within nest levels.

Clear list formatting

Holding Command (⌘) while clicking will remove all list prefixes.

Bullet format

When you install this extension, you’ll get an options page where you can select the type of bullet you prefer for unordered lists. This can be accessed again later by clicking the pencil button at the bottom of the list, then clicking the gear button next to the BulletList extension.


Show a popup preview for each URL in selected text. Used for confirming the output of scripts like SearchLink without switching to the browser.

Links are shown sequentially in the order they’re found. If a URL is changed by following links in the preview and pressing “OK”, the selected text will be updated with the final URL. Because of this, duplicate links in the text are all previewed so they can be modified individually.


Adds comment tags around or before text:

  • Default: HTML Comment
  • Hold Option: CSS Comment (/* block of text */)
  • Hold Command: Hash Comment (# before each line)
  • Hold Command-Option: Slash comment (// before each line)


Turn selected text into Markdown inline code or a code block.

Detects whether there are multiple lines:

  • if not, it surrounds the input in backticks
  • if so, it indents the entire block by one tab.

When creating an inline code block, it will also detect whitespace at the beginning and end of the selection and make sure that it’s excluded from the surrounding backticks.


PopClip extension to append the selection to the current contents in the clipboard. This is a duplicate of an existing extension (Append) with just slightly better UTF-8 handling, and modifier key handling for copying with and without linebreaks and whitespace.

  • Hold Command (⌘) when clicking to add an extra line break between entries.
  • Hold Option (⌥) to append with no extra whitespace.


Fixes emails obscured in a “support AT mydomain DOT com” fashion.

Hold Option to also open a new email compose window for each matched address. This feature does not require edit capability in the current field.

Increment Templated

PopClip extension to increment and repeat templated text. See the extension README for details.

Increment Templated

Markdown to Mindmap

Takes a selection of plain text containing markdown headlines, list items and paragraphs and converts it into a format ready for pasting into a mind mapping application (such as MindNode, MindManager or MindMeister) as separate nodes/topics.


This extension converts selected HTML text to Markdown using html2text by Aaron Swartz. Reference-style links are used and the references are placed after the text. Wrapping is disabled.

The extension shows up in PopClip as “2MD”.

NumberedList (deprecated)

PopClip extension to turn lines of text into Markdown numbered items. Will sort and update an existing numbered list as well, and convert bullets on list items to numbers.

This is only here if you want a separate button for numbered lists. Otherwise you can just use BulletList and hold down option to create an ordered list instead.


This extension searches selected text for urls (http or custom handlers) and opens all urls in their default applications.

The default OpenInChrome extension is Chrome-specific and only works with a single URL. This extension allows as many urls as you can select and will open whatever browser your system has assigned to the handler. This includes nvalt:// and txmt:// links, as well as http:// links. If you use something like Choosy it will open them through that.

Turned out to be more useful to me to just have it handle http links, detect links without protocols, and open those in my default browser.


Duplicate of OpenURLS, but copies urls to the clipboard, one link per line, instead of opening in browser.


Fully outdents the selection, maintaining nested indentation.


Detect phone numbers in the selection and call the first one using Skype.


Add hard wrapping to paragraphs. Default wrap column is 80, hold down Option to wrap at an alternate column (modify both in the extension options). Hold down command to unwrap text, removing line breaks between lines but preserving multiple lines between paragraphs.

  • Clicking wraps at ruler, default 80 characters
  • Option-click to wrap to alternate width
  • Command-click to unwrap text

Too Many Wrappers

Get it?

Allows the definition of three custom “wrappers,” prefixes and suffixes that will surround selected text. They’re triggered, respectively, by clicking with the Option key, Command key or no modifier key held down.

Think of it as a custom version of the comments plugin. I find it quite handy for adding <mark>, <ins> and <del> tags to text when editing for others.

When installing the extension, the options will appear. They can be accessed again by going into edit mode in the plugins dropdown and clicking the gear icon next to “Wrappers.”


Just URL encodes (percent encoding) the selected text using Perl.

Also available at Pilot Moon, same extension.


  • No modifier: <mark> (highlight)
  • Control: <ins datetime></ins> (insertion)
  • Command: <del datetime></del> (deletion)
  • Option: <!-- --> (comment)


Allows the quick insertion of CriticMarkup syntax. Optionally fill in a signature to have a comment included after every insert, deletion or change with your initials or name.

  • No modifier: Highlight
  • Command: Deletion
  • Control: Insertion
  • Control-Option: Change
  • Option: Comment


Also known as WebMD, this extension shows up when you select text on a web page. Clicking it will convert the selected headlines, text and links (including image links) to Markdown in your clipboard.

This extension now uses Gather. If you don’t have it installed it will offer to do so for you.


Convert all @names and #tags to Markdown or HTML links. You can set the default link type in the extension’s options, and manually switch to the other type by holding down Option when running it.


PopClip extension to lengthen and clean URLs.

Option: clean all query strings (default: only clean Google UTM strings) Command: Output just the resulting URL(s) Command-Option: Output just URL(s) with query strings stripped

PopClip extension to lengthen and clean URLs. Duplicate of LinkCleaner, but only copies results to the clipboard.

Option: clean all query strings (default: only clean Google UTM strings) Command: Output just the resulting URL(s) Command-Option: Output just URL(s) with query strings stripped


Detect all numbers in selection and total them. Allows decimal places (using . or , as separator) and negative numbers. Result is copied to clipboard.

Use the options “Separator” and “Decimal Delimiter” to define characters used in your locale for separating thousands and decimal places, respectively.


PopClip extension to search for the selected string.


Strips rich text formatting from selection. There are probably multiple others that do this, but it’s so easy I just made it myself.

Runs the SearchLink service on selected text. Requires that searchlink be installed in ~/Library/Services.


Adds the selected text to a new note in nvUltra. You can configure which notebook to use when installing the extension.


Brett's PopClip Extensions v1.44

A few PopClip extensions for Markdown writing and other useful tools

Published 11/30/14.

Updated 01/24/23. Changelog

DonateMore info…

The GitHub repository for all of my extensions is here.


Click to expand


  • Fix SearchLink extension


  • If SearchLink isn’t installed, install it when running the SearchLink extension


  • Fix nvUltra extension
  • Add SearchLink extension


  • Update WebMarkdown to allow for gather installs in /opt/homebrew/bin.


  • Remove the popcliphtml2text CLI from WebMarkdown that was causing “malicious software” warnings. Now offers to download and install using the signed and notarized package.


  • Fix a couple of bugs and improve output of html2text for WebMarkdown


  • Convert WebMarkdown to use Swift-based HTML2Text, avoiding need for Python executable


  • Fix for WebMarkdown, change to python3 and update html2text


  • Fix for bad option default type in some of the plists.


  • Increment Templated updates/fixes


  • Add “Increment Templated” extension


  • Add “HardWrap” extension


  • Replace PreviewURL with CheckURLs
    • Allows results from preview navigation to modify selected text
    • Better icon


  • Updated PreviewURL
    • Ignore URLs without http(s) protocol
    • Handle multiple URLs
    • Center preview pane on display

1.19 — 1.23

  • stupid commits because I’m having trouble with the build script. Don’t mind me.


  • Quick little format stripper (PoorText)


  • Added “DefineAbbr” extension


  • Updated (rewritten) blockquote extension


  • Added “Sum” extension


  • Added LinkCleaner and CopyCleanLinks extensions


  • Added Twitterify extension.


  • Added the WebMarkdown extension.


  • Updated OpenURLS
    • Better regex for extracting URLs
    • Hold down Option to combine lines and fix broken urls
      • This can cause issues with full urls on consecutive lines, but is handy for a single broken link.
      • Leaves leading space on lines, so urls broken with an indent are still screwed. Ran into too many problems trying to parse around that.
  • Added CopyURLs

    Duplicate of OpenURLs, but copies a plain, newline-separated list to the clipboard

  • Added FixPoorlyObscuredEmails
    • Fixes “me AT here DOT com” style email obfuscations
    • Hold Option to compose new email for matched addresses


  • Blockquote:
    • Handle line breaks better
    • Command-click to decrease quote level
    • Command-Option-click key to remove all quoting
    • don’t quote reference link definitions
  • BulletList: Bullet type configuration options, Command modifier to remove list formatting
  • CopyPlus: Option modifier to concatenate strings with no extra whitespace
  • Credits block for all extensions
  • URLEncode extension (also available at Pilot Moon)


  • Outdent: Command-click to outdent all lines fully
  • Too Many Wrappers: Removed Shift-click options as they were breaking stuff.
  • CopyPlus: Command-click to add extra linebreak between entries

Speaking of Brett's PopClip Extensions…

Related Projects