A small DIT-based progressive timed journal assistant. https://djeekay.net/dit/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Artémis 2124ff2daf
eh whatever, will continue some other time
3 weeks ago
.vscode eh whatever, will continue some other time 3 weeks ago
.editorconfig parsing, cli args, whatever bullshit im trying to do 3 weeks ago
.gitignore wrote the base ditlog tool 3 weeks ago
Makefile eh whatever, will continue some other time 3 weeks ago
README.md parsing, cli args, whatever bullshit im trying to do 3 weeks ago
ditlog.c eh whatever, will continue some other time 3 weeks ago
greatest.h parsing, cli args, whatever bullshit im trying to do 3 weeks ago
journal.c eh whatever, will continue some other time 3 weeks ago
journal.h eh whatever, will continue some other time 3 weeks ago
journal.leg eh whatever, will continue some other time 3 weeks ago
journal.log parsing, cli args, whatever bullshit im trying to do 3 weeks ago
tests.c parsing, cli args, whatever bullshit im trying to do 3 weeks ago

README.md

DITLog

A small DIT-based progressive timed journal assistant.

  • Usage: Simply run ditlog with the binary in your path
  • Config: Set the environment variable DITLOG to some path if you want your log to land there.

By default, the journal is named journal.log and sits in the cwd.

Developer notes area

Parsing the document

The standard document format is enforced by the tool as a personal choice, making it relatively easy and convenient to write a parser for it to grab all the entries.

The document format is the following.

--- Day \d{5+}:\d{1-3}:\d.\d{2}.\d{2} ---

... anything in between is the log entry (excluding the first and last blank lines)

--- END OF LOG ---

I'll probably go with Ian Piumarta's PEG/LEG parser generator for this implementation.