Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add import command #28

Open
RhetTbull opened this issue Aug 1, 2023 · 4 comments
Open

Add import command #28

RhetTbull opened this issue Aug 1, 2023 · 4 comments

Comments

@RhetTbull
Copy link
Owner

Import from HTML and Markdown with support for attachments

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

@Kolsha
Copy link

Kolsha commented Nov 2, 2023

Yeah, this would be useful

@RhetTbull
Copy link
Owner Author

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

@Kolsha
Copy link

Kolsha commented Mar 3, 2024

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.

@RhetTbull
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants