would be great if there is a way to copy text , images by highlighting content (on web site or pdf page) to paste the content as a new note on Notebooks
I’m a refugee from Evernote and finally found a replacement!
This one will do it, though it only seems to support plain text, not images or formatting.
#popclip
name: Notebooks
icon: iconify:mingcute:notebook-fill
service name: "Notebooks: Add Selection as Text"
(The above block is an extension snippet — select it then click “Install Extension” in PopClip.)
Thanks again for the extension!
Please make it like an extension Apple Note so that you can choose a notepad where to save the text.
That will need a feature added by the developer of Notebooks to support choosing the destination note when the Service is invoked.
I wrote to developer of Notebooks
Hi Nick and Artur,
Notebooks provides a dedicated service for receiving rich text (see extension snippet below), but PopClip still sends the plain text version of selected text only (public.utf8-plain-text and NSStringPboardType). I do not know what that is…
#popclip
name: Notebooks - Rich Text
icon: iconify:mingcute:notebook-fill
service name: "Notebooks: Add Selection as Rich Text"
Extending that service on our side to handle more data would be possible, but allowing users to select a target book might require more work. - Right now, Notebooks stores these documents in the selected “Default Inbox”, which is a convenient place for all types of unsorted items.
An alternative would be to use Notebooks’ URL scheme like the following extension - although that also takes plain text only, but you can define a target:
#popclip
name: Notebooks - Add Text
icon: iconify:mingcute:notebook-fill
url: notebooks://addnote/***&parent=The%20dedicated%20target
Best,
Alfons
Thanks @NotebooksApp !
For Rich Text, we can do this:
#popclip
name: Notebooks - Rich Text
icon: iconify:mingcute:notebook-fill
capture rtf: true
service name: "Notebooks: Add Selection as Rich Text"
This is using the – apparently undocument, oops! – capture rtf
flag which will instructs PopClip to try to capture RTF data for the selection, if available.
Perfect, this extension now calls the correct method in Notebooks.
However, images are not included in the RTF version. This is not unique to PopClip, though, as I notice that the “Add Selection as Rich Text” service never receives images, no matter where it is called from. The pasteboard types include
"public.utf8-plain-text",
NSStringPboardType,
"public.rtf",
"NeXT Rich Text Format v1.0 pasteboard type",
"public.utf16-external-plain-text",
"CorePasteboardFlavorType 0x75743136"
but no RTFD or webarchive, which would be perfect. - Do you have an idea why that is, or how we could enforce that?
Best,
Alfons
At present, PopClip does not pass along any RTFD or WebArchive types from the clipboard, even if they are present. It just exposes public.html
, public.rtf
and public-utf-8-plain-text
. In theory other types could be added, but so far nobody ever asked for it. With larger selections with images it does work slower having to extract all the data for each data type, which is why the extension has to “opt in” to it, and I have kept it streamlined to these 3 types. PopClip is focused on text handling so anything with images or other data types I have regarded as peripheral.
That makes sense. With PopClip being focused on text handling and without demand to extend it to include media, there is no need to unnecessarily slow it down. - The rest is entirely up to user feedback
Hi @nick and @NotebooksApp, I have just signed up because I found the PopClip extension for Notebooks but was unable to modify it to my needs.
Instead of sending web content as plain text (or richt text as suggested above), I would like to capture web content and send it to Notebooks as markdown, just like with all the great Webclippers and extensions known in the context of Obsidian.
I found some web->markdown extensions but this involves going back to the Notebooks app and pasting it (two extra steps). Thank you very much for any help!
Hi, thanks for the suggestion. That’s theortically possible but not actually possible to do with PopClip as it stands. There isn’t quite enouggh plumbing to allow the markdown pileine to be fitted to the service endpoint! I have noted this as a possible feature enhancement. Will post here if any progress.