Opened 8 months ago

Closed 4 months ago

Last modified 4 months ago

#9338 enhancement closed fixed (fixed)

Add `twist' to list of commands we provide shell tab-completion for

Reported by: teratorn Owned by: Adi Roiban <adi.roiban@…>
Priority: lowest Milestone:
Component: core Keywords: review easy
Cc: Branch:


We should provide shell-tab completion for `twist' just like the other Twisted commands. Right now that only means zsh.

This is accomplished by adding "twist" to the #compdef list in the file src/twisted/python/twisted-completion.zsh

An older version of this zsh completion stub is shipped in zsh, and is the primary means by which zsh "knows" how to complete Twisted commands out of the box.

Updating the list of Twisted commands necessarily means pushing a new version of this stub upstream to zsh.

The last attempt to get a new stub in zsh didn't go so well.

But I think it's worth another shot - if zsh folks don't provide us with a standard, structured way to provide dynamic completion functionality, then I don't think they should complain about us continuing to do things the way they have been done and are currently still done (by eval'ing a zsh completion function provided by Twisted on stdout)

Change History (5)

comment:1 Changed 8 months ago by Glyph

By all means, let's do it!

(It would be nice to get bash completion too, at some point.)

comment:2 Changed 8 months ago by teratorn

Keywords: review added

comment:3 Changed 8 months ago by teratorn

Keywords: easy added

Added easy keyword because this is a simple change. But note someone still needs to poke the zsh mailing list after we update our tree..

comment:4 Changed 4 months ago by Adi Roiban <adi.roiban@…>

Owner: set to Adi Roiban <adi.roiban@…>
Resolution: fixed
Status: newclosed

In 02309b2:

Merge pull request #940 from teratorn/9338-teratorn-twist-zsh-completions

Author: teratorn
Reviewer: adiroiban
Fixes: ticket:9338

Zsh completions is now provided for the twist command.

comment:5 Changed 4 months ago by Ilya Skriblovsky <IlyaSkriblovsky@…>

In 1701ab6:

Merge pull request #968 from twisted/9388-ilyaskriblovsky-rsa-2048-keys

Author: IlyaSkriblovsky
Reviewer: adiroiban, rodrigc
Fixes: ticket:9338

Update RSA keys used for testing to 2048bit in order to make it compatible with OpenSSH 7.6 and fix AppVeyor automated builds

Note: See TracTickets for help on using tickets.