Chronicle
write your chronicle from command line
Install
# from cargo
Usage
Pro tip: Consider using shell aliases if these feel too wordy.
# create new chronicle named "code"
# set the file for persisting the chronicle
# set vim as default editor
# set VS Code as default editor
# events willed be inked in reverse chronological order,
# which is the default
# in chronological order
# set timestamp formats for date and hms, which adheres to
# https://docs.rs/chrono/0.4/chrono/format/strftime/index.html
# recommended workflow: draft -> reword -> ink
# wipe off draft buffer of "code"
# erased content can be found in $HOME/.chronicle/backup~/
Configuration
You can also configure Chronicle by modifying the config file, which defaults to
- on Unix: $HOME/.chronicle/config.toml
- on Windows: %USERPROFILE%\.chronicle\config.toml
# ===== global configuration =====
# editor for rewording
= "/usr/bin/vim"
# whether to list events in reverse chronological order,
# which defaults to
= true
# timestamp date format, which defaults to
= "%Y-%m-%d"
# timestamp hms format, which defaults to
= "%H:%M"
# ===== per-chronicle configurations =====
# config options specific to chronicle "code",
# which override their global counterpart
[]
# === required fields ===
# path of file for persisting chronicle "code"
= "/Users/eagr/logs/code.md"
# === optional fields ===
# options below will inherit from their global counterpart
# if you leave them out
= true # or false
= "..."
= "..."
License
Except as otherwise noted, the project is distributed under MIT and Apache License 2.0.