summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2019-07-26Merge branch 'refactor-runtime' into master-ffMatthias Beyer
2019-07-26Refactor: Do not provide functions for these identifiersMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26Fix Hash vs PartialEq bug found by Clippyflip1995
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25Add checks whether variables are valid unicode and propagate appropriate errorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-24Rewrite get_rtp_match() to not panicMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-14Add cli validators for date and datetimeMatthias Beyer
2019-07-09Fix for update to new version of mdcatMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30Remove use of ItertoolsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30Update all dependenciesMatthias Beyer
This patch updates all dependencies but not "nom". Done with `cargo upgrade --all` and manual editing. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30Merge branch 'libimaghabit-dont-copy-comment-to-instance' into masterMatthias Beyer
2019-06-30Do not create comment in habit instanceMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30Change HabitInstance implementation to not contain comment in instanceMatthias Beyer
This patch changes the HabitInstance implementation so that the comment is not expected to exist in the instance object itself. This is done for less data duplication. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30Add DiaryId::get_date_representation() functionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Fix: Location of tags should not change in the refactoringMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Add testsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Update dependency: toml-query: 0.9.2 for index-out-of-bounds fixesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Add test whether setting tags worksMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Tagable should not be implemented for ValueMatthias Beyer
Oh my dear, what was I thinking? Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Simplify implementation of has_tags()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Remove unused importsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Simplify implementation of has_tag()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Simplify implementation of remove_tag()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Simplify implementation of add_tag()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Simplify implementation of set_tags()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29Simplify implementation using toml-query PartialMatthias Beyer
This patch rewrites the get_tags() function to use toml_query::read::Partial. The helper functions is_tag_str and is_tag are rewritten for compatiblity. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-26Add trace outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-26libimagentrylink: Add debugging outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-26Rename module: timetrackingstore -> storeMatthias Beyer
2019-06-26Add support for directional linksMatthias Beyer
This patch adds support for directional links in libimagentrylink. A directional link is added to the same header as the "internal" links, which are unidirectional. The "outgoing" link is added in "links.to", the "incoming" links are added to "links.from". This way we can always traverse all linkage. The `Linkable::links()` method is changed to always return _all_ link. The `Link` type was extended for notions of "to" and "from" links. Also adds testing. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-23Fix expected link in testMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-23Add more debug outputMatthias Beyer
2019-06-23Add test whether adding an URL worksMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-23Rewrite UrlLinkerMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-23Reimplement link module with header PartialMatthias Beyer
This patch reimplements the "link" module using the `toml_query::read::Partial` feature. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-23Refactor: Remove notion of "external link"sMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-23Fix: Make sure links are sorted and deduplicatedMatthias Beyer
2019-06-23Remove annotateable linkingMatthias Beyer
This patch removes the annotateable linking feature from libimagentrylink. It was not used anyways. Also, this patch rewrites the complete linking code to use the toml-query "typed" feature rather than constructing everything by itself. This removes a lot of unmaintainable boilerplate code. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-22Allow unused variable hereMatthias Beyer
2019-06-22Remove obsolete (internal) functionMatthias Beyer
2019-06-21Rename module: linker -> linkableMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-21Rename interfaceMatthias Beyer
With this patch, the libimagentrylink library interface gets renamed. The trait gets renamed to the more descriptive name "Linkable", the functions get renamed to not contain any notion of "internal" anymore. This patch also adapts the whole source tree for the new libimagentrylink interface, also renaming variables to not contain "_internal_" anymore. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-15Merge branch 'libimagentrylink-split' into masterMatthias Beyer
2019-05-31Import toml-query with typed featureMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-05-31Split "internal" module into several submodulesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-05-31Fix debug output messageMatthias Beyer
2019-05-31Rename functions: *_external_link -> *_urlMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-05-31Adapt tested pathMatthias Beyer
2019-05-31Fix libimagentrymarkdown for new url libMatthias Beyer
2019-05-31Fix libimagbookmark for new url libraryMatthias Beyer
2019-05-31Fix import for new libimagentryurl libMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>