[Orgmode] Re: add a whole directory as one item to refile targets

2009-10-17 Thread Eraldo Helal
> 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 i

Re: [Orgmode] Re: add a whole directory as one item to refile targets

2009-10-17 Thread Sebastian
Am Samstag, den 17.10.2009, 12:58 +0200 schrieb Eraldo Helal: > Thank you very much for sharing this! > That seems to be more than what I need. > > A waaay easier solution would be to be able to refile/save a headline > to a non-predefined target. > > just like it is the case with "find file" (C-

Re: [Orgmode] Re: add a whole directory as one item to refile targets

2009-10-17 Thread Eraldo Helal
Thank you very much for sharing this! That seems to be more than what I need. A waaay easier solution would be to be able to refile/save a headline to a non-predefined target. > just like it is the case with "find file" (C-x C-f) in other words: being able to "find a file" to use as refile target

Re: [Orgmode] Re: add a whole directory as one item to refile targets

2009-10-12 Thread Sebastian
Am Montag, den 12.10.2009, 15:48 +0200 schrieb Eraldo Helal: > > What is Reference/ supposed to be in this case -- a directory? Refiling > > only works to headings (or top level headings) in files in org-mode IIRC. > Yes it is supposed to be a directory... > > I have org files in many directorys.

[Orgmode] Re: add a whole directory as one item to refile targets

2009-10-12 Thread Carsten Dominik
On Oct 12, 2009, at 3:48 PM, Eraldo Helal wrote: What is Reference/ supposed to be in this case -- a directory? Refiling only works to headings (or top level headings) in files in org-mode IIRC. Yes it is supposed to be a directory... I have org files in many directorys... about like so:

[Orgmode] Re: add a whole directory as one item to refile targets

2009-10-12 Thread Eraldo Helal
> What is Reference/ supposed to be in this case -- a directory?  Refiling > only works to headings (or top level headings) in files in org-mode IIRC. Yes it is supposed to be a directory... I have org files in many directorys... about like so: reference/emacs/emacs.org reference/eros/eros.org

[Orgmode] Re: add a whole directory as one item to refile targets

2009-10-10 Thread Bernt Hansen
Eraldo Helal writes: > If I am on a headline in an org-mode buffer and do "C-c C-w" (refile) on it... > ...and then press TAB twice. I get a completion list buffer that pops > up and looks somthing like this: > > Possible completions are: > done.org/eraldo.org/inbox.org/ > >>> s