Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel - cac41d0759
Do not recenter position when jumping to current clock
This keeps the current view as it is in case it's already visible in some
buffer.
2023-05-16 18:26:14 +02:00
Daniel - 58e5cd3506
Jump to headline of the currently clocked item when going there
Before this change, we went to the position of the open clock, which is not
where we want to be in case no open checklist item is found.
2023-05-16 18:25:00 +02:00
1 changed files with 1 additions and 2 deletions

View File

@ -1300,7 +1300,7 @@ clocked-in tasks to jump to."
(select
(or (org-clock-select-task "Select task to go to: ")
(user-error "No task selected")))
((org-clocking-p) org-clock-marker)
((org-clocking-p) org-clock-hd-marker)
((and org-clock-goto-may-find-recent-task
(car org-clock-history)
(marker-buffer (car org-clock-history)))
@ -1314,7 +1314,6 @@ clocked-in tasks to jump to."
(goto-char m)
(org-show-entry)
(db/org-goto-first-open-checkbox-in-subtree :silent)
(recenter org-clock-goto-before-context)
(org-reveal)
(if recent
(message "No running clock, this is the most recently clocked task"))