macnotesapp icon indicating copy to clipboard operation
macnotesapp copied to clipboard

Add import command

Open RhetTbull opened this issue 1 year ago • 4 comments

Import from HTML and Markdown with support for attachments

Allow use of template for title, e.g notes import --title {filepath.name} *.html

RhetTbull avatar Aug 01 '23 17:08 RhetTbull

Yeah, this would be useful

Kolsha avatar Nov 02 '23 16:11 Kolsha

@Kolsha any specific use cases you'd fine useful? I haven't worked on macnotesapp in a while due to other projects but am planning to spend some more time on it in the coming weeks.

RhetTbull avatar Nov 02 '23 17:11 RhetTbull

In an ideal scenario I want to setup periodic double way sync from/to obsidian to/from apple notes.

Apple Notes with its Quick Note feature makes note taking frictionless, but lacks support of markdown and other features.

Kolsha avatar Mar 03 '24 15:03 Kolsha

In an ideal scenario I want to setup periodic double way sync from/to obsidian to/from apple notes.

I don't use Obsidian so this won't get worked on unless someone submits a PR. Obsidian does have an Apple Notes importer. I suggest trying to convince Obsidian to do this.

Two-way sync with Apple Notes is very difficult because Apple doesn't provide access to the raw notes data. The API that macnotesapp uses cannot access all the formatting in notes (e.g. checked checkboxes, tags, embedded attachments). macnotesapp could get the HTML for the note (which loses non-HTML markup like checkboxes) and the attachments but doesn't know where in the note the attachments are embedded. It cannot access keywords even though they appear in the note as #keyword they're not accessible via the API and are stripped when requesting the HTML from Notes.

I primarily use macnotesapp to quickly add notes from the Terminal. I wish I could do more with it but Apple does not expose an adequate API.

RhetTbull avatar Mar 03 '24 16:03 RhetTbull