Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
tab completion and non-consecutive letter matching
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rizumu  
View profile  
 More options Jul 12 2012, 1:06 pm
From: rizumu <funks...@gmail.com>
Date: Thu, 12 Jul 2012 10:06:12 -0700 (PDT)
Local: Thurs, Jul 12 2012 1:06 pm
Subject: tab completion and non-consecutive letter matching

Hi,
I have helm-mode activated in my init.el and I also have smart-tab
installed, but I am unfamiliar with helm and unsure what the expected
behavior should be in the following two situations.

1. I expected that tab completion would work in helm, but when I press tab
nothing happens and the minibuffer says:
   Sole action: action-fn

2. Also about matching on non-consecutive letters. For example, for helm to
match the M-x command "org-mobile-push". I expected to be able to type
"rgmobpu" but instead I have to type "rg-mobile-pu" to achieve the same.

Thanks for the help.

best,
Tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thierry Volpiatto  
View profile  
 More options Jul 12 2012, 5:05 pm
From: Thierry Volpiatto <thierry.volpia...@gmail.com>
Date: Thu, 12 Jul 2012 23:05:00 +0200
Subject: Re: tab completion and non-consecutive letter matching
Hi Tom,

rizumu <funks...@gmail.com> writes:
> Hi,
> I have helm-mode activated in my init.el and I also have smart-tab
> installed, but I am unfamiliar with helm and unsure what the expected
> behavior should be in the following two situations.

I don't know what is smart-tab and don't know if it works with helm.

> 1. I expected that tab completion would work in helm, but when I press tab
> nothing happens and the minibuffer says:
>    Sole action: action-fn

Depend which completion you want; helm handle well elisp completion, for
tab to work use:

(define-key lisp-interaction-mode-map [remap indent-for-tab-command] 'helm-lisp-completion-at-point-or-indent)
(define-key emacs-lisp-mode-map       [remap indent-for-tab-command] 'helm-lisp-completion-at-point-or-indent)

first hit on TAB will indent your code, second hit (fast [1]) will
complete.
[1] You can set this delay, see `helm-lisp-completion-or-indent-delay'.

> 2. Also about matching on non-consecutive letters. For example, for helm to
> match the M-x command "org-mobile-push". I expected to be able to type
> "rgmobpu" but instead I have to type "rg-mobile-pu" to achieve the same.

Type "rg mob pu" (notice the spaces)
Which give me here two candidate:
org-mobile-pull/push
You can type also this:
"rg mob pu !sh"
Which will remove the org-mobile-push candidate.

--
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rizumu  
View profile  
 More options Jul 13 2012, 8:11 am
From: rizumu <funks...@gmail.com>
Date: Fri, 13 Jul 2012 05:11:49 -0700 (PDT)
Local: Fri, Jul 13 2012 8:11 am
Subject: Re: tab completion and non-consecutive letter matching

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.

best,
Tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thierry Volpiatto  
View profile  
 More options Jul 13 2012, 11:48 am
From: Thierry Volpiatto <thierry.volpia...@gmail.com>
Date: Fri, 13 Jul 2012 17:48:01 +0200
Local: Fri, Jul 13 2012 11:48 am
Subject: Re: tab completion and non-consecutive letter matching

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rizumu  
View profile  
 More options Jul 18 2012, 7:02 am
From: rizumu <funks...@gmail.com>
Date: Wed, 18 Jul 2012 04:02:07 -0700 (PDT)
Local: Wed, Jul 18 2012 7:02 am
Subject: Re: tab completion and non-consecutive letter matching

Sorry for the delayed reply. It all makes sense now, thank you for the
explanation.

best,
Tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »