From 0e0f464a6573287831558a7a2372be314f21a81f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 25 Mar 2021 19:37:48 -0700 Subject: [PATCH] For the journal capture template, only include task if clocked in --- oni-org/capture-templates/journal.org | 4 +--- oni-org/oni-org.el | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/oni-org/capture-templates/journal.org b/oni-org/capture-templates/journal.org index 1711305..3d0f142 100644 --- a/oni-org/capture-templates/journal.org +++ b/oni-org/capture-templates/journal.org @@ -1,5 +1,3 @@ * %<%H:%M:%S> -- task (clocked in) :: %K - -%? +%(if (org-clock-is-active) "- task (clocked in) :: %K\n\n" "")%? diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 65f2ca6..cfaaf67 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.0324.103342 +;; Version: 2021.0325.193551 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam) ;; This program is free software; you can redistribute it and/or modify