abiosoft / ishell

Library for creating interactive cli applications.
MIT License
1.68k stars 195 forks source link

Include a space after tabbing successfully #81

Open omani opened 6 years ago

omani commented 6 years ago

Hi abiosoft,

again thank you for this great piece of software. I would like to know if we can make the tab functionality work in such a way that every successfully autocompleted (through tabbing) word could include a trailing space so we don't have to tab twice to get the word filled/completed and continue with next word. the second tab is needed to put a space after the successfully completed word.

this makes a double tap more efficient. right now I have to tab three times. "wo" -> tab -> autocomplete to "word"\<cursor here> -> tab again -> "word "\<cursor here>(notice the space after "word") -> next command available for tabbing.

thanks.

abiosoft commented 6 years ago

I understand the advantage. I'm not sure if the readline library allows that. I'll explore and see. Thanks.