psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.07k stars 54 forks source link

feature request: wormhole code completion #105

Closed j-lakeman closed 11 months ago

j-lakeman commented 11 months ago

I really appreciate the existing command completion! IMHO it would be even cooler to have a completion for the wormhole code. It could just look up the word in the dictionary, for example.

psanford commented 11 months ago

Wormhole code completion works as part of bash/zsh completion:

$ wormhole-william receive 2-frequency-ba<TAB>
2-frequency-baboon     2-frequency-backward   
2-frequency-backfield  2-frequency-banjo
j-lakeman commented 11 months ago

I didn't know about that functionality, cheers! Works with fish shell as well, btw. But what I meant was the case when typing wormhole-william receive + ENTER. Then the completion doesn't work, instead TAB inserts \t. I'd prefer to not clutter my shell history with all the different wormhole codes. Is it possible to extend the completion for my case as well?

psanford commented 11 months ago

I don't really want to add a thirdparty dependency for a readline-like library for code completion when we already have code completion on the cli.

j-lakeman commented 11 months ago

Sounds fair enough.