From 7df353e7dcc66731f03502460aba225700067fb3 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 11 Jan 2022 10:02:29 -0800 Subject: [oni-org] Don't change the state of a TODO when I'm capturing it When a capture template is set up to clock in as I'm capturing it, this function would immediately change the state of the item to WIP (or whichever next status there was), but even though I'm spending time on the ticket at that point it's not in progress yet. --- oni-org/oni-org.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'oni-org/oni-org.el') diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 58f5f5a..b17b645 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.0110.220554 +;; Version: 2022.0111.100221 ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org org-contrib org-bullets org-edna diminish all-the-icons olivetti mixed-pitch) ;; This program is free software; you can redistribute it and/or modify @@ -235,7 +235,8 @@ located at the start of the line." (defun oni-org-maybe-change-todo-state (current-state) "Change the state of the current task to in-progress CURRENT-STATE is todo." - (if (member current-state org-todo-heads) + (if (and (not org-capture-mode) + (member current-state org-todo-heads)) (cadr (member current-state org-todo-keywords-1)) current-state)) -- cgit v1.2.3-54-g00ecf