Skip to main content

Command-line notebook for daily entries.

Project description

Hello and welcome to daily, a program for command-line journaling. Each journal entry is stored in a file named after the date in YYYY-mm-dd format in either MD or RST format.

Building and installation

Available via PyPi. pip3 install daily-cli --user

Alternatively, clone this repo and run these commands.

make
pip3 install --user .

The man pages will be installed at $HOME/.local/usr/share/man and the bash completion script will be installed at $HOME/.local/etc/bash_completion.d/daily_completion.sh. Update your bashrc.

Usage

Usage is detailed in the man pages under ./doc/man. Start with daily.1, but a general quick start cookbook…

daily  # Perform first-time setup
daily add  # Edit today's entry.
daily show  # Show previous 2 weeks of entries
daily add -d yesterday  # Add or edit an entry on a specific date.
daily add --before today  # Batch edit any entries before today
daily show workout todo  # Show only specific headings for entries
daily add workout  # Edit specific headings for an entry.

daily todo  # Print next 2 weeks of todos

Entries have a title named after the date, a desription, headings, and metadata all built in to the text. Here is a simple example in markdown.

# 2022-10-10, Mon
I went to my daughter's play.

## Workout
And did like a gazillion pushups.


<!--- attributes --->
    ---
    id: some-internal-id
    tags: []

And an example in RST.

=================
 2022-10-10, Mon
=================
This semester in college is really starting to grind.

Todo
====
- 8am Calculus class.
- 9am Workout


.. code-block:: yaml

    ---
    id: some-internal-id
    tags: []

Usage with Vimwiki

Modify daily.ini (installed in ~/.config/daily after a first run) to change the journal’s directory to your vimwiki diary, and be sure the format is “md”.

Also install the generate-vimwiki-diary-template file to your ~/.vim/bin directory. This will make it so vim auto-generates daily’s entry text for new markdown files in the vimwiki diary directory. This must be done manually.

Maintenance and versioning

Update the CHANGELOG when cutting a new release, then update the version in setup.py. Then commit and tag it named after the release. Then…

  • Run make to build the package.

  • make release to upload to PyPi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

daily-cli-2.1.2.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

daily_cli-2.1.2-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file daily-cli-2.1.2.tar.gz.

File metadata

  • Download URL: daily-cli-2.1.2.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for daily-cli-2.1.2.tar.gz
Algorithm Hash digest
SHA256 111162ec60b469911cbdb62407c97eb2f883c3f0a07b81e5c98f398ea239292d
MD5 3a672becbb58e9f74d0f35c296fab445
BLAKE2b-256 5008606066bfc18a50deb1b391ee69d66d052662da5e955f63ce93fb057afe9c

See more details on using hashes here.

File details

Details for the file daily_cli-2.1.2-py3-none-any.whl.

File metadata

  • Download URL: daily_cli-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for daily_cli-2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e38b54ab98acdd2f81a0285b1dc6946a7d7f38566b3c4039bba8488ee94ba95c
MD5 783035c0962ff6bd346e11ed498ec600
BLAKE2b-256 c28668eb806b27d3467498965547a07e2d123212a6b83123de98fc3f219afebf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page