macnotesapp icon indicating copy to clipboard operation
macnotesapp copied to clipboard

Add export command

Open RhetTbull opened this issue 1 year ago • 2 comments

Add notes export DIRECTORY to export all or some notes to DIRECTORY:

--json: export to JSON --sqlite: export to SQLite DB --txt: export to text --html: export to HTML --attachments: export attachments (link in HTML) --folders: export by folder --markdown: export as markdown

--filename TEMPLATE: use metadata template language template for specifying the file path, e.g:

--filename "{account}/{folder}/{title} - {date}"

RhetTbull avatar Mar 28 '23 06:03 RhetTbull

See also #20, could be done as --sqlite

RhetTbull avatar Jun 09 '23 12:06 RhetTbull

Also when exporting individual notes, the creation date and modification date of the file should be set

touch -t will change creation date touch -mt will change modification date

Also add --no-touch option which doesn't change the dates.

RhetTbull avatar Jun 09 '23 12:06 RhetTbull