Skip to content

tortoo/popclipextensions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brett's PopClip Extensions

My growing collection of PopClip extensions.

Current release version: 1.20 (source code)

Installation

This repository only includes these as source bundles (.popclipext), not packaged .popclipextz versions. To install, just make sure the extension of a folder is .popclipext and double click it in Finder. An up-to-date package of the bundled versions is available on my site.

Extensions

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.

Blockquote

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.

BulletList

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.

Comment

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)

Code

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.

CopyPLUS

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.

FixPoorlyObscuredEmails

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.

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.

Markdownify

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.

OpenURLS

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.

CopyURLS

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

Outdent

Fully outdents the selection, maintaining nested indentation.

SkypeCall

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

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."

URLEncode

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

Also available at Pilot Moon, same extension.

Editor

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

CriticMarkup

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

WebMarkdown

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.

Twitterify

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.

LinkCleaner

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

CopyCleanLinks

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

Sum

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.

DefineAbbr

PopClip extension to search textingabbreviations.ca for the selected string.

PoorText

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

Download

The GitHub repository for all of my extensions is here.

Changelog

1.19 --- 1.20

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

1.18

  • Quick little format stripper (PoorText)

1.17

  • Added "DefineAbbr" extension

1.16

  • Updated (rewritten) blockquote extension

1.15

  • Added "Sum" extension

1.14

  • Added LinkCleaner and CopyCleanLinks extensions

1.12

  • Added Twitterify extension.

1.11

  • Added the WebMarkdown extension.

1.10

  • 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

1.8

  • 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)

1.7

  • 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

About

Brett's PopClip Extensions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 67.7%
  • Ruby 25.4%
  • Perl 6.0%
  • Shell 0.9%