You are not logged in.

#1 2014-06-01 07:13:50

bstaletic
Member
Registered: 2014-02-02
Posts: 658

[SOLVED] Zsh autosuggestion and tab-completions

I've been trying to make zsh's auto suggetion work like the one in fish. I found this git repo which makes auto suggestion work exactly like the one in fish shell.

Unfortunately there's now a problem of tab-completion not working the way it used to before implementing scripts from the above git repo.
Now whenever I press tab (there's more then one possible completion) it displays all the possible completions, but the second tab just chooses the first one available.

Last edited by bstaletic (2014-06-02 17:00:18)

Offline

#2 2014-06-01 07:27:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Zsh autosuggestion and tab-completions

I dabbled with fish for about a week or so a while back, but I can't remember it very well.  What do you expect to happen upon the second press of the tab key?


Edit: Splling

Last edited by WonderWoofy (2014-06-01 07:27:20)

Offline

#3 2014-06-01 07:30:48

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] Zsh autosuggestion and tab-completions

Second tab, as avry tab after that one, should cycle through the possible completions, not just select first and be done with it. I achieved this through zsh inital configuration, but it is overriden with these scripts.

Offline

#4 2014-06-02 16:59:55

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] Zsh autosuggestion and tab-completions

Found a way around it! I enabled selecting completions using arrow keys by adding the line below to my .zshrc. This way tav still works the way I described, but I'm able to get to the desired completion (sometimes) even easier than before.

zstyle ':completion:*' menu select

Offline

Board footer

Powered by FluxBB