First of all, thank you very much for your amazing work, @jonathanslenders, bravo!
So I have a small question: I'm trying to implement a CLI editor for key/value pairs. I would like to modify the selected text, add double quotes and put cursor between them, so that user would immediately start typing a value. But I don't want to display those extra characters in the suggestion list. Could you please give me some pointers how such behaviour might be implemented?
E.g. if we have a list of options Foo, Bar, Baz and user selects Bar, that's how it would look (_ is cursor position after selecting the suggestion):
Hi,
First of all, thank you very much for your amazing work, @jonathanslenders, bravo!
So I have a small question: I'm trying to implement a CLI editor for key/value pairs. I would like to modify the selected text, add double quotes and put cursor between them, so that user would immediately start typing a value. But I don't want to display those extra characters in the suggestion list. Could you please give me some pointers how such behaviour might be implemented?
E.g. if we have a list of options
Foo, Bar, Baz
and user selectsBar
, that's how it would look (_
is cursor position after selecting the suggestion):Thank you very much!