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 export command #23

Open
RhetTbull opened this issue Mar 28, 2023 · 2 comments
Open

Add export command #23

RhetTbull opened this issue Mar 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@RhetTbull
Copy link
Owner

RhetTbull commented Mar 28, 2023

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 RhetTbull added the enhancement New feature or request label Mar 28, 2023
@RhetTbull
Copy link
Owner Author

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

@RhetTbull
Copy link
Owner Author

RhetTbull commented Jun 9, 2023

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.

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

No branches or pull requests

1 participant