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:
reference/emacs/emacs.org
reference/eros/eros.org
reference/Avalon/Avalon.org
reference/Gimp/Gimp.org
reference/office/office.org
reference/home/home.org
reference/poems/poems.org
...
What would be a smart way to get a headline from the file inbox.org
named "* Erich Fried poems" to poems.org?
Considering that poems.org is not part of the agenda nor a refile
target.
Well, you need to make it a refile target, that is the
whole point of defining refiling targets.
If you want, you can make yourself a special refile function that
temporarily installs a long list of files in org-refile-targets. You
can use `let' to bind
org-refile-targets, and directory-files to get the files.
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
HTH
- Carsten
What I am doing until now is:
folding the headline (tab)
cutting the headline (C-k)
making a split screen (C-x 2)
changing buffer (C-x o)
opening poems.org (C-x C-f "reference/poems/poems.org")
pasting headline (C-y)
changing buffer (C-x o)
removing split view (C-x 1)
Poems.org is not part of the agenda because it is reference material
and not an active file.
It is also not a refile target because I would have to make every .org
file in all subdirectories a refile target and sometimes the
appropriate file does not yet exist, in which case I need to create
it.
Any ideas?
Do I need to further try to make clear what I mean?
Greetings,
Eraldo
- Carsten
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode