From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Fast completion with visible cue? Date: 27 Aug 2004 12:33:47 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093603218 5448 80.91.224.253 (27 Aug 2004 10:40:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 10:40:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 27 12:40:09 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C0e9Q-00005L-00 for ; Fri, 27 Aug 2004 12:40:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0eE5-00046q-Og for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2004 06:44:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0eDw-00045K-Hz for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:44:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0eDv-00044g-Sr for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:44:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0eDv-00044d-PG for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:44:47 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1C0e8r-0001YD-Ln for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:39:34 -0400 Original-Received: (qmail 4403 invoked from network); 27 Aug 2004 10:32:51 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 27 Aug 2004 10:32:51 -0000 Original-To: Simon Josefsson In-Reply-To: Original-Lines: 60 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26562 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26562 Simon Josefsson writes: > > Try ido-mode. > > Thanks! This seem to be icomplete-mode, but for C-x C-f. > > However, I see two major problems: > > * It changes how file completion work. When I type ~/sr and press TAB > it scroll in the file *Ido Completion* buffer while displaying 'Find > file: ~/sr{SRC/ | CVSROOT | .cvsrc | .newsrc | .newsrc.eld }' in the > minibuffer. It doesn't complete the input to ~/src/, which is the > only matching entry. You accept the current (first) choice with RET, not TAB. Actually, "sr" occurs as a substring in all of the listed entries, so there are more than one "matching entry". You can customize ido-enable-prefix to only match on the first part of file names. Personally I find this too inflexible, once you get used to the default non-prefix mode. You can also customize ido-enable-flex-matching to get even more flexible matching, e.g. to select help.txt, you can enter e.g. htx > > * While the 'Find file: ~/{file | foo | bar | ... }' display, > occupying up two three lines of the minibuffer by default, may be > useful for experts, I think normal users will become afraid when > they see it. My original idea would only display one suggested > filename, which seems friendlier. Customize ido-max-window-height to 1. > > > With that, you have several options here: > > > > 1) Since ido remembers the directories you have been editing, it > > puts the most recent directory as the first choice for completion: > > > > C-x C-f ~/pro RET RET RET RET ... RET > > Yes, I understand now how it wants me to use it. But I think this is > a too big user interface change to be on by defaul.t I have it as the default (with flex matching), and it makes C-x C-f MUCH MUCH MUCH faster once you get used to it. > > > 2) Since ido remembers the files you work on, this may also work: > > > > C-x C-f help.txt M-s RET > > It worked sometimes, but seemed a bit fragile. True, but it works most of the time... -- Kim F. Storm http://www.cua.dk