From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Samuel Wales" Subject: ido's flex matching in org-refile Date: Sun, 9 Nov 2008 19:11:40 -0700 Message-ID: <20524da70811091811r51fcbfdaue35fa583e35ec361@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 1KzMFk-0000ZL-N1 for emacs-orgmode@gnu.org; Sun, 09 Nov 2008 21:11:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzMFi-0000Z8-73 for emacs-orgmode@gnu.org; Sun, 09 Nov 2008 21:11:43 -0500 Received: from [199.232.76.173] (port=47059 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzMFi-0000Z5-0r for emacs-orgmode@gnu.org; Sun, 09 Nov 2008 21:11:42 -0500 Received: from nf-out-0910.google.com ([64.233.182.184]:25442) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzMFh-0003Ob-Hf for emacs-orgmode@gnu.org; Sun, 09 Nov 2008 21:11:41 -0500 Received: by nf-out-0910.google.com with SMTP id c7so1191469nfi.26 for ; Sun, 09 Nov 2008 18:11:40 -0800 (PST) Content-Disposition: inline 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: emacs-orgmode@gnu.org For those who don't know, flex matching in ido is really something else. Just a few characters uniquely specify a target. For those who want to experiment with ido's flex matching for org-refile, here is how I did it. 1. In org.el's org-refile-get-location, substitute ido-completing-read for completing-read. 2. M-C-x. 3. Settings. ;;these enable ido for other stuff (ido-mode 1) (ido-everywhere 1) (setf ido-confirm-unique-completion t) (setf ido-enable-flex-matching t) ;;season to taste. for me, this is fast. (setq org-refile-targets '((org-agenda-files . (:maxlevel . 2)))) ;;i didn't get it to work with this as t, but it probably is ;;pretty easy. this is the next thing that should be done. (setf org-refile-use-outline-path nil) 4. Get into an org file. 5. Call org-refile. By the way, this should also work for headline jumping and any other part of org that uses completing-read. See http://www.emacswiki.org/emacs/InteractivelyDoThings for background. Anybody who wants to take this over is welcome. -- For financial gain, professional myalgic encephalomyelitis deniers are knowingly causing further suffering and death by opposing biomedical research into this fast-spreading serious disease. Care about the world? Learn and get active: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm