Releases: tnahs/readstor
v0.6.0
v0.5.1
Bug Fixes
- Filenames are no longer truncated if they contain a period
..
v0.5.0
Features
-
Added the
--filter <[?*=]FIELD:QUERY>option allowing books and annotations to be filtered down for theexportandrendercommands. See the documentation on [Filtering][filtering] for more information. -
Added the
--auto-confirm-filteroption to auto-confirm the filtered results prompt. -
All slugified strings in the
bookandannotationcontexts have been moved to under theslugsnamespace. For example:book.slugs book.slugs.title book.slugs.author book.slugs.metadata.last_opened -
The
book.slugs.metadata.last_openedvalue has been added to thebookcontext. -
A custom directory template can now be passed to the
exportandbackupcommands. See the documentation for the [export][export] and [backup][backup] commands for more information. For example:readstor export --directory-template "{{ book.author }} - {{ book.title }}"
-
The
--overwrite-existingcommand has been added to theexportcommand to toggle whether or not to overwrite existing files. This used to be true all the time and is now customizable.
Changes
- The short option name for
--quietis now-q. - Removed the
dataandresourcesdirectories from theexportcommand.
Bug Fixes
- Slugified strings no longer appear in output data when using the
exportcommand. - The
--trim-blocksoption now only leaves a single trailing line-break.
v0.4.1
Bug Fixes
Books::tagsnow returns a unique list of#tags.- Passing a nonexistent template-group to
--template-groupnow returns an error instead of silently failing.
v0.4.0
Features
- Added the
--text-wrap <WIDTH>option to enable text-wrapping.
Changes
- Implemented a more robust pre- and post-processor.
- The configuration key
name-templatesis nownames. - A template's
names.annotationsvalue is now a list of dictionaries. This dictionary contains a field for the rendered filename as well as fields for some of its respective annotation's metadata. The primary reason for this change is to allow the user to optionally sortnames.annotationsby these metadata fields. See the documentation for [Context Reference - Names][names] for more information. - The short option name for
--trim-blocksis now-t.
v0.3.0
Features
- Overhauled templates workflow.
- A template's config is now set within the header of the file inside an HTML-comment. As a result, the filename of a template no longer matters. The only exception is when naming a template partial, these must begin with an underscore (
_). - Nested rendered template outputs are now optional via the
structurekey in the template's config and can be customized via thename-templates.directorykey. - Template output filenames are now customizable via the
name-templates.bookandname-templates.annotationkeys in the template's config. - All Tera features are now supported!
- Added
--trim-blocksto naively remove extra line-breaks from the final rendered template. This is only a temporary solution until Tera implements this internally. - Added
--template-groupoption to render only subset of templates found in the templates directory.
- A template's config is now set within the header of the file inside an HTML-comment. As a result, the filename of a template no longer matters. The only exception is when naming a template partial, these must begin with an underscore (
- Added pre-processing options to
renderandexport.--extract-tagsto extract#tagsfrom notes.--normalize-whitespaceto reduce 3+ line-breaks to 2.--ascii-onlyto convert all Unicode characters to ASCII.--ascii-symbolsto convert only a subset of "smart" Unicode symbols to ASCII.
- Added
--quietflag to silence terminal output. - Added
--databases-directoryoption to use a custom databases path. - Added
Book::tags, a compiled list of all the tags within a book's annotations. - Releases will now have binaries for Apple Silicon and Intel.
- Added CI, build, docs and publish actions.
Changes
- Moved
--templates-directoryoption underrendercommand. - Renamed
--templatesto--templates-directory. - Renamed
--outputto--output-directory. - Removed logging verbosity option from cli.
- Removed nested directory from output file structure i.e.
data,renders,backups. - Databases backup directories now have a
-between the date and version:[YYYY-MM-DD-HHMMSS]-[VERSION].
v0.2.0
Features
- Output message now includes the export location.
Changes
- Reworked CLI commands.
- Updated license to MIT/Apache-2.0.
- Renamed 'assets' directory to 'resources'.
- Renamed 'items' directory to 'data'.
- Documented how to implement custom templates.
Bug Fixes
- Fixed #3 Wrong default template location.