emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-refile-use-outline-path question
@ 2011-10-12  5:54 Arun Persaud
  2011-10-12  8:02 ` Sebastien Vauban
  0 siblings, 1 reply; 3+ messages in thread
From: Arun Persaud @ 2011-10-12  5:54 UTC (permalink / raw)
  To: emacs-orgmode

Hi

I use the following settings to refile tasks

(setq org-refile-use-outline-path 'file)
(setq org-refile-targets '((org-agenda-files . (:maxlevel . 5))))

this has the nice effect that I can refile across different files, which
I do use every now and then.
For this I use:

<file>/level1/level2/...

However mostly I refile to the same file and therefore I wish I could
just use something like:

level1/level2/...

and it would refile using the current file, which at the moment doesn't
work for me (at least the level1s of the current file are not part of
the autocomplete, only files are).

Is there a way that this can be done or can this be added?

Thanks

Arun

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

* Re: org-refile-use-outline-path question
  2011-10-12  5:54 org-refile-use-outline-path question Arun Persaud
@ 2011-10-12  8:02 ` Sebastien Vauban
  2011-10-12  9:33   ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2011-10-12  8:02 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Arun,

Arun Persaud wrote:
> I use the following settings to refile tasks
>
> (setq org-refile-use-outline-path 'file)
> (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5))))
>
> this has the nice effect that I can refile across different files, which
> I do use every now and then.
> For this I use:
>
> <file>/level1/level2/...
>
> However mostly I refile to the same file and therefore I wish I could
> just use something like:
>
> level1/level2/...
>
> and it would refile using the current file, which at the moment doesn't
> work for me (at least the level1s of the current file are not part of
> the autocomplete, only files are).
>
> Is there a way that this can be done or can this be added?

Not that I know of.

I had the same wish, with eventually `.' or something like that to denote the
local file. But it's still on the TODO lists...

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: org-refile-use-outline-path question
  2011-10-12  8:02 ` Sebastien Vauban
@ 2011-10-12  9:33   ` Bernt Hansen
  0 siblings, 0 replies; 3+ messages in thread
From: Bernt Hansen @ 2011-10-12  9:33 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



"Sebastien Vauban"
<wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:

> Hi Arun,
>
> Arun Persaud wrote:
>> I use the following settings to refile tasks
>>
>> (setq org-refile-use-outline-path 'file)
>> (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5))))
>>
>> this has the nice effect that I can refile across different files, which
>> I do use every now and then.
>> For this I use:
>>
>> <file>/level1/level2/...
>>
>> However mostly I refile to the same file and therefore I wish I could
>> just use something like:
>>
>> level1/level2/...
>>
>> and it would refile using the current file, which at the moment doesn't
>> work for me (at least the level1s of the current file are not part of
>> the autocomplete, only files are).
>>
>> Is there a way that this can be done or can this be added?
>
> Not that I know of.
>
> I had the same wish, with eventually `.' or something like that to denote the
> local file. But it's still on the TODO lists...

Add an extra entry to org-refile-targets indicating the current file
should be valid for refiling.

I use

--8<---------------cut here---------------start------------->8---
(setq org-refile-targets (quote ((nil :maxlevel . 9)
				 (org-agenda-files :maxlevel . 9))))
--8<---------------cut here---------------end--------------->8---

You'll still have to specify the current file in the path though with
your setup.

Regards,
Bernt

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

end of thread, other threads:[~2011-10-12  9:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-12  5:54 org-refile-use-outline-path question Arun Persaud
2011-10-12  8:02 ` Sebastien Vauban
2011-10-12  9:33   ` Bernt Hansen

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).