Skip to content

Take web text and make a new NotePlan note from it.

License

Notifications You must be signed in to change notification settings

jgclark/Web2NotePlan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web2NotePlan PopClip extension

An extension for PopClip to take web text and add to NotePlan app, keeping as much of the formatting as NotePlan allows. Note:

  • this only works on web content - not source code
  • it creates a few lines of header that includes the web page title, source and date of clipping
  • it imports any images though this hasn't been well tested ...

Usage

Highlight part of a web page or email client (or other source with underlying HTML), and on the little PopClip menubar that appears either:

  • click the NotePlan star icon . This copies the text and any images, and adds them to the end of the current daily note.
  • ⌘-click the NotePlan star icon. This copies the text and any images, and adds them as a top-level new note in NotePlan.

Installation

Download the Web2NotePlan.popclipext extension, and then double-click it to add it to PopClip. By default, PopClip will display a warning dialog when you try to install your own extension, because it is not digitally signed by Pilotmoon Software:

Example unsigned warning.

This is normal, and you should click "Install ...". (PopClip stores its installed extensions in ~/Library/Application Support/PopClip/Extensions/.)

It will then show you a little dialog to set the available options:

  • Open the new note? When a new note is made, do you want NotePlan to display it?
  • Open in a new window? If you want to open a new note, do you want to appear in a new window, or the current one?
  • Add date to header? Only relevant when a new note is made.
  • Tag that's appended to show source (optional). I set this to #PopClipped to show where it comes from.

Credits

This extension uses:

  • html2text by Aaron Swartz. (GPL 3 licensed, see COPYING) to convert HTML to Markdown. Note that this version is many years old, but it's the latest version I can find that is a single file that can easily be included and run within the constraints of a PopClip extension. (Current versions are at https://pypi.org/project/html2text/.)
  • two one-line Perl scripts to encode and decode the markdown to pass to NotePlan.

Hat-tip to Brett Terpstra whose Web Markdownifier extension inspired the "Copy as Markdown" extension that this was forked from, by Jonathan Clark and Brad Rokosz. And of course big thanks to Eduard Metzger who develops the amazing NotePlan app.

About

Take web text and make a new NotePlan note from it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.4%
  • Shell 7.6%