Autocompletion doesn't work in zsh

Bug #531537 reported by Алексей Капранов (Alex Kapranoff)
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Quickly
Triaged
Wishlist
Unassigned

Bug Description

Since all the logic is implemented inside quickly in python the port to zsh should be pretty straightforward.

Revision history for this message
Алексей Капранов (Alex Kapranoff) (kkapp) wrote :

I investigated more into this and found out that modern zsh has a bash-compat layer already present. So the fix is to add two lines to ~/.zshrc. I can add it to quickly FAQ when it will be created :)

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Indeed this should be easy as you saw, all the logic is in Quickly (it was on my TODO list)

Do you want to work on that? It's been a long time I didn't use zsh and if you know how it shell completion works for it, this should be "quickly" done looking at bash_completion existing file :-)

It's still time to include that before 0.4 to be released!

Changed in quickly:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

I can include that in Quickly itself if we can put in something like /etc/zshrc_completion or whatever. Maybe easier?

Revision history for this message
Алексей Капранов (Alex Kapranoff) (kkapp) wrote :

As far as I understand there's no easy way to install Quickly autocompletion functions into zsh without rewriting from bash to zsh system. I don't think the challenge is worth the effort because it's very easy to just add:
===========
autoload -Uz bashcompinit
bashcompinit
source /etc/bash_completion.d/quickly
===========
to $HOME/.zshrc and get the autocompletion for free via zsh's bash compatibility layer (that's bashcompinit). Unfortunately, the users will have to do it themselves. I suggest that we document it somewhere.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Not so sure, in fact I made some research and it seems it's possible: reprepro has one. I've pastebinit there: http://paste.ubuntu.com/388234/

This is one more more complicated than quickly's one, bit still can be helpful to setup one. It should be installed in /usr/local/share/zsh/site-functions/ (I can handle that part if you don't know how to do it)

Being able to port the bash completion script easily to other system was my first reason to have all the shell completion logic into quickly itself :)

Do you want to have a look to that? I think it will be better than changing things in zshrc for every zsh user and would be a great first Quickly contribution!

Revision history for this message
Алексей Капранов (Alex Kapranoff) (kkapp) wrote :

I don't think I'm ready to invest time and effort into this, sorry. bashcompinit solution works great for me and my zsh-using colleagues.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.