emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Is it possible to use the refile interface to select the heading


From: Rasmus
Subject: Re: [O] Is it possible to use the refile interface to select the heading for clocking?
Date: Sat, 09 Jan 2016 13:40:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Marcin Borkowski <address@hidden> writes:

> Hi all,
>
> and thanks in advance;-)!


Maybe something like this?

(defun rasmus/org-clock-in (&optional DEFAULT-BUFFER NEW-NODES NO-EXCLUDE)
  "Clock in remotely"
  (interactive)
  (save-excursion
    (goto-char (nth 3 (org-refile-get-location
                       "clock in" DEFAULT-BUFFER NEW-NODES NO-EXCLUDE)))
   (org-clock-in)))


You could also cook your own locator, e.g.

(org-goto-local-search-headings
 (ido-completing-read
  "File note to: "
  (org-element-map
      (org-element-parse-buffer)
      'headline
    (lambda (hl)
      (and (= (org-element-property :level hl) 1)
           (org-element-property :title hl)))))
 nil nil)


Hope it helps,
Rasmus

-- 
Even a three-legged dog has three good legs to lose





reply via email to

[Prev in Thread] Current Thread [Next in Thread]