From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Refile to a different Org file? Date: Mon, 06 Dec 2010 07:45:56 -0500 Message-ID: <87wrnn2hob.fsf@fastmail.fm> References: <201011251701.oAPH1gbM032630@hormel5.ieee.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=58867 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPaSV-0006H3-Qa for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 07:46:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPaST-00054K-0B for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 07:46:23 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:51591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPaSS-00051A-U9 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 07:46:20 -0500 In-Reply-To: (Raymond Zeitler's message of "Mon, 29 Nov 2010 13:49:54 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: r.zeitler@ieee.org Cc: emacs-orgmode@gnu.org Hi Raymond, "Raymond Zeitler" writes: > Thank you Sebastien. (Sorry about the Americanized spelling of your name.) > > I added (setq org-refile-use-outline-path 'file) and switched to a maxlevel > of 2. Now I have a working solution. That was one "point" to my post. > > Org-agenda-refile still doesn't find the categories within other files. And > now completion is broken for categories even within the main todo file. But > this a viable alternative because: >> BTW, I use unique category names across all files using this >> structure: >> >> * Tasks >> #+CATEGORY: DM_Tasks Could you clarify what you mean by categories in this context? Are you expecting to find individual headlines such as "Tasks," or are you looking for the category name ("DM_TASKS") in the prompt? AFAIK, the latter is not possible. (As an aside, the method of adding categories above has been deprecated. Using the :CATEGORY: property is a safer method.) For reference, here are my org-refile settings: --8<---------------cut here---------------start------------->8--- (setq org-refile-allow-creating-parent-nodes 'confirm) (setq org-outline-path-complete-in-steps t) (setq org-completion-use-ido nil) (setq org-refile-use-outline-path 'file) (setq org-refile-targets '((org-agenda-files :maxlevel . 2) (nil :maxlevel . 3))) --8<---------------cut here---------------end--------------->8--- With these settings, org-refile allows completion of targets sequentially: e.g., "file.org/" or "file.org/headling" or "file.org/headling/subheading". HTH, Matt