All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Extended add command so a diary line can be passed via the CLI @jyi2ya.
- Fixed extra "\n" character being added needlessly.
- Added
commit
command. This allows the user to commit entries to a git repo without having to navigate to the diary folder.
- Added support for rst diaries. This can be declared when using the
init
function.
- Refactored internals to isolate markdown related functions. New structs now deal with file type specific operations.
- Functions intended just for testing are placed inside a test submodule.
- Added enum_dispatch as a dependency and changed how different diary entry file types are handled.
- Changed how configs are handled so a specific config can be passed on the CLI.
- Refactored Config to make use of the builder pattern.
- Added
get_entry_file
andget_entry_path
to Config. This allows the caller to get the entry using just a date. - Added prefix flag to the
init
command. - Added repo flag to the
init
command.
- Added
open
command.
- New command errors if diary is unintialised.
- Calls to
edit::edit
now only happen in the binary crate. Function provided tonew
andadd
as an argument. Improves testability.
- Added
add
command.
user_edit_file
now adds an additional line break to the end of the user's text.
- Added
init
andnew
commands.