From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: refile ideas Date: Mon, 3 Aug 2009 15:31:55 -0700 Message-ID: <20524da70908031531s417bb607tcf9a4d52857bc070@mail.gmail.com> References: <20524da70907072159v3604e31ekf4209ea2643942e5@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MY64Z-0000cL-43 for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 18:32:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MY64U-0000X5-6R for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 18:32:02 -0400 Received: from [199.232.76.173] (port=50771 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MY64S-0000WH-Ui for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 18:31:57 -0400 Received: from mail-yw0-f189.google.com ([209.85.211.189]:38767) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MY64S-00089v-L0 for emacs-orgmode@gnu.org; Mon, 03 Aug 2009 18:31:56 -0400 Received: by ywh27 with SMTP id 27so4403911ywh.26 for ; Mon, 03 Aug 2009 15:31:55 -0700 (PDT) In-Reply-To: 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: Carsten Dominik Cc: emacs-orgmode@gnu.org Hi Carsten, On 2009-08-02, Carsten Dominik wrote: > If you mark some headlines (for example you remember targets) > with a tag like "r", you could make yourself a restricted > refile command like this: > > (defun my-org-restricted-refile () > (interactive) > (let ((org-refile-targets '((org-agenda-files :tag . "r")))) > (call-interactively 'org-refile))) > > Not what you proposed, but maybe useful. I like it. It gives me an idea for remember. For consistency, we can optionally make remember use restricted refile as you propose above. The way it would work is this. A template can optionally specify only format, not target location. When that is the case, c-c c-c in the remember buffer asks you where you want to file using restricted refile. I would definitely use this, because I want to have the time between idea and text as short as possible. Deciding the target location does not need to happen before the text. This would allow reduction of remember templates to just the ones that have different formats. It would allow you to remember to different locations from a given template, and different templates to a given location, without increasing the number of templates or going to a full refile interface. In my case, a full refile interface is /very/ slow when it gathers candidates. But a restricted refile is much faster and reduces human error.