Message from discussion
tab completion and non-consecutive letter matching
Received: by 10.180.106.3 with SMTP id gq3mr294329wib.1.1342194488108;
Fri, 13 Jul 2012 08:48:08 -0700 (PDT)
X-BeenThere: emacs-helm@googlegroups.com
Received: by 10.180.73.226 with SMTP id o2ls913165wiv.0.gmail; Fri, 13 Jul
2012 08:48:06 -0700 (PDT)
Received: by 10.180.14.169 with SMTP id q9mr294981wic.0.1342194486598;
Fri, 13 Jul 2012 08:48:06 -0700 (PDT)
Received: by 10.180.14.169 with SMTP id q9mr294980wic.0.1342194486589;
Fri, 13 Jul 2012 08:48:06 -0700 (PDT)
Return-Path: <thierry.volpia...@gmail.com>
Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172])
by gmr-mx.google.com with ESMTPS id a5si533658wiy.0.2012.07.13.08.48.06
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 13 Jul 2012 08:48:06 -0700 (PDT)
Received-SPF: pass (google.com: domain of thierry.volpia...@gmail.com designates 74.125.82.172 as permitted sender) client-ip=74.125.82.172;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of thierry.volpia...@gmail.com designates 74.125.82.172 as permitted sender) smtp.mail=thierry.volpia...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-we0-f172.google.com with SMTP id u54so2813921wey.17
for <emacs-helm@googlegroups.com>; Fri, 13 Jul 2012 08:48:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=from:to:subject:references:date:in-reply-to:message-id:user-agent
:mime-version:content-type;
bh=9QxH/4jQ+oZ0Tw0BDcInL0SNphZaDFgfWTI1pEBRNuw=;
b=rvA4dWznWHCEYnklohpKWdtHNqiNcLMA6Nekk0SoDELdBylDxBHwaiCZ8vSyR0E7Qw
mDm4vNDT5bi4tsUHMpwAxQs36Q3WARPkeJ0ETcC1wY71rr7eX1EGrQJ+XcpeSIJ7Pv91
9RhNXtGr9cIPr4UABMa6wYWcBFkBabvCP8hbfKIdNAS6K7h0GZi0Z03EsfCNqdbgpDmS
q+U006eCWVRyPGDH4abIPpWxkvB9Yu/uMd3wwRi0zCbyopZUvw1tc7ovmjYdysxsGKFJ
QxUTdW3kd51vGmEi5xXeNWKv++wkwOBPiJO33VFdQIeKvs2lnpcZuZKqjBt+0/xfwAqQ
/f6w==
Received: by 10.216.33.6 with SMTP id p6mr944840wea.153.1342194486415;
Fri, 13 Jul 2012 08:48:06 -0700 (PDT)
Return-Path: <thierry.volpia...@gmail.com>
Received: from thierry-MM061 (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167])
by mx.google.com with ESMTPS id fu3sm5937009wib.10.2012.07.13.08.48.04
(version=TLSv1/SSLv3 cipher=OTHER);
Fri, 13 Jul 2012 08:48:05 -0700 (PDT)
From: Thierry Volpiatto <thierry.volpia...@gmail.com>
To: emacs-helm@googlegroups.com
Subject: Re: tab completion and non-consecutive letter matching
References: <27796262-cab9-4149-a5af-526fce505362@googlegroups.com>
<87hatcoflv....@gmail.com>
<d409e5df-5679-4ada-8a18-47c6ac06121b@googlegroups.com>
Date: Fri, 13 Jul 2012 17:48:01 +0200
In-Reply-To: <d409e5df-5679-4ada-8a18-47c6ac06121b@googlegroups.com> (rizumu's
message of "Fri, 13 Jul 2012 05:11:49 -0700 (PDT)")
Message-ID: <87y5mnaci6....@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
rizumu <funks...@gmail.com> writes:
> Hi Thierry,
>
> Thanks for the reply. What you've said works great, but I didn't explain
> myself clearly about the tab completion part. I'd like to know how it works
> inside of the helm mini-buffer, not a code file, but that is useful to know
> as well.
>
> If I have helm-mode enabled and type "M-x eval-b <tab>" nothing happens, I
> just get the "Sole action: action-fn" message in the minibuffer. Since
> there are no other completions for "eval-b" except for "eval-buffer" I
> thought it would tab complete and select this command. Instead I have to
> press enter.
>
> Similarly for "M-x find-file ~/.emacs.d/ini <tab>" I expected it to tab
> complete and open init.el. And on that note, if there is a match such as
> two folders "~/file1.el" "~/file2.el" typing "~/fi <tab>" should complete
> up until to "~/file" and wait for me to type a 1 or 2, press tab again, and
> then open that file.
>
> Probably I'm missing something simple, but thats how bash completion works,
> so I'd like to achieve the same behavior inside of helm.
In helm <TAB> open the action buffer if the source have more than one
action.
helm-M-x have only one action, if you use helm-mode the regular M-x
command will have only one action also.
A typical use of helm is typing something in minibuffer to narrow down
the completion buffer and moving in this buffer with arrow keys or C-n/p
to select the candidate you need.
So to reply to your question, there is no TAB completion in helm because
the helm-buffer is the completion result itself.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997