From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: Fast completion with visible cue? Date: Fri, 27 Aug 2004 12:07:03 +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 1093601290 822 80.91.224.253 (27 Aug 2004 10:08:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 10:08:10 +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:08:01 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 1C0deL-0006TT-00 for ; Fri, 27 Aug 2004 12:08:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0dj0-0002OS-NS for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2004 06:12:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0dit-0002OM-8e for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:12:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0dis-0002Ns-82 for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:12:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0dis-0002No-3e for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:12:42 -0400 Original-Received: from [217.13.230.178] (helo=yxa.extundo.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C0ddn-0004m3-Oa for emacs-devel@gnu.org; Fri, 27 Aug 2004 06:07:28 -0400 Original-Received: from latte.josefsson.org (c494102a.s-bi.bostream.se [217.215.27.65]) (authenticated bits=0) by yxa.extundo.com (8.12.11/8.12.11/Debian-5) with ESMTP id i7RA7Clp026391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=OK); Fri, 27 Aug 2004 12:07:18 +0200 Original-To: storm@cua.dk (Kim F. Storm) X-Hashcash: 0:040827:storm@cua.dk:95cdb06bda9f4cfa X-Hashcash: 0:040827:emacs-devel@gnu.org:10307e6c00446634 In-Reply-To: (Kim F. Storm's message of "27 Aug 2004 09:29:48 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-Virus-Scanned: clamd / ClamAV version 0.75-1, clamav-milter version 0.75c on yxa-iv X-Virus-Status: Clean 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:26559 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26559 storm@cua.dk (Kim F. Storm) writes: > Simon Josefsson writes: > >> Is the following possible with some ad-on package? If so, would it >> make sense to enable the ad-on by default? If not, what do people >> think about adding this feature? >> >> I'm really sorry for the complicated explanation, there is probably a >> really simple term for this idea, and I suspect it is already >> implemented. But if so, I'd like to vote for having it on by default. >> Many GNOME and GTK programs have similar user experience. >> >> 1. CWD is ~. You wish to open a file >> ~/projects/src/foo/doc/drafts/template/help.txt, so you might press >> C-x C-f ~/proj TAB sr TAB f TAB doc TAB dr TAB tem TAB he TAB RET >> >> 2. You edit the file for a while, then close it with C-x C-k. >> >> 3. Hours pass and you edit lots of other files, however, consider for >> sake of example that all the files you edit are in ~/play/. >> >> 4. You wish to edit the first file again. You type >> C-x C-f ~/pro > > 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. * 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. > 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 > 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.