Emacs-helm tab (nothing) doesn't auto-complete with a better match

When trying to autocomplete a file (for example, to open a file using Cx Cf ), Emacs-helm displays a list of possible candidates.

If I then press Tab (which I hope will help me choose the first / closest match), I get the following in the minibuffer:

enter image description here

It looks like the minibuffer is confused with escape characters, and it does not select the file that I really want to open (top choice).

+6
source share
1 answer

The helmet requires this conceptual transition from Emacs default completion, which is not so obvious:

You do not need to press a key to complete. The completion buffer is updated with new results after each entry.

This is called incremental termination.

Normal tab functionality is not required in "incremental" termination. So, the tab bounced to helm-select-action , which allows you to select an alternative action with a selection. But there is only one action in read-file-name .

The error you see may be clearer, but I filed this issue on github.

In addition, the Helm note treats each space separated by a space as filtering a regular expression. Thus, pressing space foo will filter the current list to those that contain foo in the name.

+8
source

Source: https://habr.com/ru/post/925956/


All Articles