Zsh-autocomplete: clashes with auto-suggestion

Created on 12 Jun 2020  路  5Comments  路  Source: marlonrichert/zsh-autocomplete

Hello!

Let's say I want to do git add something, the way I would usually do this is to write git add som and use the autocomplete. But the tab key is now broken and I see:

No matching completions found.

Is there a solution to this?

Bug report

All 5 comments

@mimoo @jef I cannot reproduce this with my local build. In your clone of the zsh-autocomplete repo, can you please git pull; git checkout dev, restart your terminal and try if it works then?

Here's what I did to try to reproduce it:

% cd "$(mktemp -d)"
% ZDOTDIR=$PWD HOME=$PWD zsh -df
% git init
% touch foo
% git add f

Result:

  • The completion menu appears and shows foo.
  • Pressing Tab results in f being completed to foo.

Let me try again today. I may have had a fluke.

Worked fine for me. I think my problem was with aliasing git with something like dotfiles

dotfiles='/usr/bin/git --git-dir=/Users/anon/.dotfiles/ --work-tree=/Users/anon'

Then running something like:

dofiles add f

The autocompletion works for foo, but not necessarily for add or other git options. Could be more of a complex thing going on here though.

OK, good to know it's not a problem with zsh-autocomplete, then. 馃檪

Was this page helpful?
0 / 5 - 0 ratings