|
From: | Eraldo Helal |
Subject: | [Orgmode] Re: add a whole directory as one item to refile targets |
Date: | Sat, 17 Oct 2009 15:19:22 +0200 |
> For example (untested) > > (defun my-refile-to-reference () > (interactive) > (let ((org-refile-targets (list (directory-files "~/Reference/ 'full > "*.org") > '(:maxlevel . 1)))) > (call-interactively 'org-refile))) > > Would offer all top-level headlines in any org files in the ~/Reference > directory "directory-files" only outputs directories but no .org files therefore with the pattern "*.org" as a filter ... nothing is returned! But I like the idea a lot! Should "directory-files" list all files inside a directory? Greetings, Eraldo
[Prev in Thread] | Current Thread | [Next in Thread] |