janeway
janeway copied to clipboard
Autocomplete
Add support for autocomplete
I've added some basic autocomplete functionality. Quickly written, very alpha, but it gets the job done pretty well.
Something is better than nothing :-)
I've seen the autocomplete example on the readme and looks cool :-) To make it cooler I think it should:
- [x] use only the width of the biggest suggestion instead of all available space up to right margin
- [x] don't show emply lines
- [ ] show first suggestion directly on the input field space
Good ideas!
You are welcome :-)
Well it took a while, but the width & empty lines changes have been implemented and will be released with v0.2.3.
Not too sure about the "show first suggestion..." one, it's a lot of work for a minor feature.
Not too sure about the "show first suggestion..." one, it's a lot of work for a minor feature.
We can have this issue open until a solution appear, maybe future API changes (if any) makes it easier...
Could you be abe to update the readme screenshoot? How have you recorded it?
I don't really remember, I think byanz, but I might try to record it using peek this time.
FYI: Peek has a bug where it generates a very noisy gif, which breaks compressability and generates +/- 10MiB gifs, I created an issue here: https://github.com/phw/peek/issues/288
So I'm using byzanz again to create the gifs, and then compress them further using the gifsicle-lossy fork.