From c40a50d52e4e81d0bc172a639f0b9437671b9c01 Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Tue, 23 Sep 2014 12:33:50 -0400 Subject: [PATCH 1/1] make open the notes show the subtree and go to the beginning of the line --- org-ref.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org-ref.org b/org-ref.org index 6810435..5a86177 100644 --- a/org-ref.org +++ b/org-ref.org @@ -1721,7 +1721,11 @@ construct the heading by hand." (goto-char (point-min)) ;; put new entry in notes if we don't find it. - (unless (re-search-forward (format ":Custom_ID: %s$" key) nil 'end) + (if (re-search-forward (format ":Custom_ID: %s$" key) nil 'end) + (progn + (show-subtree) + (outline-previous-visible-heading 1)) + ;; no entry found, so add one (insert (format "\n** TODO %s - %s" year title)) (insert (format" :PROPERTIES: -- 2.39.2