Skip to main content

Appends timestamps to your clerk journal entries

Project description

clerk-timestamp

A clerk extension to append timestamps to your journal

Setup

Install clerk-timestamp in the venv that clerk is installed in

$ pipx runpip josephhaaga-clerk install josephhaaga-clerk-timestamp

Then, in your clerk.conf config file:

...

[hooks]
JOURNAL_OPENED =
    timestamp

For more information, see clerk hooks documentation

Configuration

As of v0.0.3, clerk-timestamp supports the following configuration options.

  • format specifies your timestamp format (used in datetime.strftime)
  • prefix specifies the timestamp prefix
  • suffix specifies the timestamp suffix

Add them to your clerk.conf config file, as show in this example:

[DEFAULT]
...

[hooks]
JOURNAL_OPENED=
    timestamp

[timestamp]
format=%%Y-%%m-%%d %%I:%%M:%%S %%p
prefix=
    [
suffix=] 

which results in a newline character, and square brackets around the timestamp in our specified format every time a journal is opened

# existing journal document <EOF>

[2021-06-22 09:47:23 PM]

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

josephhaaga-clerk-timestamp-0.0.3.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

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