Skip to content

Instantly share code, notes, and snippets.

@nickcernis
Last active August 26, 2018 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickcernis/a3e16147ca8b77cf467f7bb7e68574e8 to your computer and use it in GitHub Desktop.
Save nickcernis/a3e16147ca8b77cf467f7bb7e68574e8 to your computer and use it in GitHub Desktop.
Mac shell script: wrap clipboard contents to 70 characters and prefix as markdown blockquote, preserving links and non-ASCII
pbpaste | fmt -w 70 | sed -e 's/^/> /'
@nickcernis
Copy link
Author

nickcernis commented Jul 23, 2018

Useful in TextExpander or Keyboard Maestro:

screen shot on 2018-07-23 at 07_20_34

@nickcernis
Copy link
Author

Or as an Alfred workflow:

alfred_preferences

Snippet:

alfred_preferences

Run script:

screenshot_8_26_18__23_37

Copy to clipboard:

screenshot_8_26_18__23_38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment