Skip to content

Instantly share code, notes, and snippets.

@mobeets
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mobeets/6076de33f81fc25dd2cc to your computer and use it in GitHub Desktop.
Save mobeets/6076de33f81fc25dd2cc to your computer and use it in GitHub Desktop.
journal management ideas

Workflow

  1. Command line jrn creates file (from template if desired) for specified day, date range, file format
  2. Daily builds
  • inputs: *.rtf, *.txt, *.md, *.html, *.png. *.jpeg
  • output: *.md
  • dirs: Journal/ -> _posts/
  • update _data/counts.json
  1. Jekyll template for viewing/searching posts

Raw file structure

Journal/

  • '(2014-10-01 - 2014-10-03) this is the title.rtf'
  • '(2014-10-04) another title.rtf'
  • '(2014-10-05) another title, different format.html'

Output file structure (jekyll-ready)

_data/

  • counts.json _posts/
  • index.md
  • 2014/
    • index.md
    • 10/
      • index.md
      • 2014-10-01-this-is-the-title.md
      • 2014-10-02-this-is-the-title.md
      • 2014-10-03-this-is-the-title.md
      • 2014-10-04-another-title.md
      • 2014-10-05-another-title-different-format.md

UI

  • something like jrnl
  • probably not jrnl though because it doesn't allow date ranges, also weird that it's just one file?
  • maybe just a front-end for creating filenames with correct datestamps, given title
  • also allow a way to specify date ranges

Storage

Q: One large file or multiple small files?

  • advice
  • SQLite?
  • db requires db connection, meaning no static access
  • too many files in one dir = bad idea
  • very large file with memory map might be okay, but seems awkward from user stand-point since you're forced to edit/view with script
  • folders by year and files within?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment