emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Is it possible to use the refile interface to select the heading for clocking?
@ 2016-01-09 12:23 Marcin Borkowski
  2016-01-09 12:40 ` Rasmus
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2016-01-09 12:23 UTC (permalink / raw)
  To: Org-Mode mailing list

Hi all,

and thanks in advance;-)!

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is it possible to use the refile interface to select the heading for clocking?
  2016-01-09 12:23 Is it possible to use the refile interface to select the heading for clocking? Marcin Borkowski
@ 2016-01-09 12:40 ` Rasmus
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2016-01-09 12:40 UTC (permalink / raw)
  To: emacs-orgmode

Marcin Borkowski <mbork@mbork.pl> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-09 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-09 12:23 Is it possible to use the refile interface to select the heading for clocking? Marcin Borkowski
2016-01-09 12:40 ` Rasmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).