emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Sebastien Vauban
	<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: org-refile-use-outline-path question
Date: Wed, 12 Oct 2011 05:33:37 -0400	[thread overview]
Message-ID: <87sjmyblla.fsf@norang.ca> (raw)
In-Reply-To: <80ipnu3aek.fsf@somewhere.org> (Sebastien Vauban's message of "Wed, 12 Oct 2011 10:02:27 +0200")



"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

      reply	other threads:[~2011-10-12  9:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjmyblla.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).