Hi Carsten,

You truly are awesome! :)

This message started as a feature request.

------------------------------------------------------------------------
Subject: Feature Request - org refile targets adds the current file targets

I was reviewing one of my archive files today which is not in my
org-agenda-files and found I wanted to reorder a few archived tasks into
different archive categories.

org-refile (C-c C-w) does not offer the current file's targets as
options for the refile.

In this case I had

* Research
** Some task
...
* Miscellaneous
** Some Research Task

and I wanted to refile the ** Some Research Task to the * Research
heading but org-refile only offered Research headings from org files in
my org-agenda-files list.

Would it be possible to add the targets of the current file the task is
in to the completion list?

I ended up cutting and pasting the tasks in this case and ended up
fixing some of the levels since they changed to level 1 tasks when I
wasn't careful about where I pasted the content.

,----[ part of custom.el ]
| (custom-set-variables
|  ...
|  '(org-refile-targets (quote ((org-agenda-files :level . 1))))
|  ...
|  )
`----

Thanks,
Bernt
------------------------------------------------------------------------

Then before sending it I took a few minutes to look up the
org-refile-targets help (C-h v org-refile-targets) and what I want to do
is already available.

I changed my custom.el to

,----[ part of custom.el ]
| (custom-set-variables
|  ...
|  '(org-refile-targets (quote ((org-agenda-files :level . 1) (nil :level . 
1))))
|  ...
|  )
`----

and it just works exactly how I want.

Thanks for org-mode that continues to amaze me with its power and
utility each and every day.

Carsten, you get my maintainer-of-the-year and
software-product-of-the-year award votes!!  :)

Best Regards,
Bernt


_______________________________________________
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

Reply via email to