Skip to main content

devjournal

Terminal-based journal for developers.

Table of Contents

Installation

pip install devjournal

Optional configuration

Directory

The default directory for storing configuration and journal entries is ~/.devjournal. This can be overridden with the DEVJOURNAL_DIR environment variable.

Git synchronization

Optionally, run dj setup to specify a Git repo and branch to be used for syncing. It is required that

  • you have ssh access to the server,
  • the repo has at least one commit already, and
  • you have push rights on to the specified branch.

Editor

If running on Windows, consider setting the environment variable EDITOR to an editor of your choice, to make devjournal use that editor when editing journal entries.

Usage

Adding new journal entry

$ dj add

This command will open the entry in the editor specified by the environment variable EDITOR. If that variable is not set, it will use the start command instead, which on Windows opens the editor for .txt files (by default Notepad).

Alternatively, you can add the text of the entry directly on the command line:

$ dj add This is my journal entry

Listing

Listing all entries

$ dj log
1 | 2022-12-25 16:15:56.536078 | add hello world

Listing only entries containing any of the search terms

$ dj find hello
1 | 2022-12-25 16:15:56.536078 | add hello world

Editing

Editing a journal entry

$ dj edit 1

Amending the last journal entry

$ dj amend

Deleting a journal entry

$ dj delete 1

Developing

# Setup pre-commit and pre-push hooks
hatch run pre-commit install -t pre-commit
hatch run pre-commit install -t pre-push

Running tests

hatch run cov

Roadmap

  • Remove requirement for having the remote repo having at least one commit
  • Speed up by not syncing with Git all the time
  • Replace find and log with a browser
    • Features:
      • filtering entries by text
      • filtering entries by
      • options for selecting a certain entry
      • editing the selected entry
    • Can textual be used?
      • textual does not work very well in the vscode terminal, so perhaps not.
  • Investigate if multiple entries from the same day should be combined under the same heading, and if so if they should only show the date and not the time.

Metadata

Release files for devjournal 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devjournal 0.7
File Size Uploaded
devjournal-0.7.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devjournal 0.7
File Interpreter ABI Platform
devjournal-0.7-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / devjournal-0.7.tar.gz

Download URL devjournal-0.7.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b47b77d55a564204fd6ac4cf9a6aad920db46f8f05c04dad738d63b6532cd3dd
BLAKE2b-256 checksum
How to use checksums
6b11bc5efa1940a12c246a3c0df8ffec90a93639ae8732144631347ff990f076
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.0

Release files / devjournal-0.7-py3-none-any.whl

Download URL devjournal-0.7-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe63d411a809da63d0f996e9361d69bf36bcca41fb3e4215fa125fcf221577c4
BLAKE2b-256 checksum
How to use checksums
69b4fef7f1440b9ff76f54933f6b2a7c4319c2dad3f50ed87b12cf1cd2ef1915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.0

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page