read icon indicating copy to clipboard operation
read copied to clipboard

Add completer option and forward as option to readline

Open 131 opened this issue 10 years ago • 4 comments

131 avatar Oct 06 '15 22:10 131

Good idea, but needs a test.

isaacs avatar Oct 07 '15 16:10 isaacs

I wrote a simple test for completion to readline. In the child, i react to a very simple completion event the master tap test just need to press the "tab" key. Very simple, very efficient.

And not working I spend 2 hours trying to understand & send the proper "whaterver key just send "tab" to the other side" key, with no success.

Feel free to take a look, i'm stuck here

// this is NOT sending TAB key to underlying child
write('\t'); 
//nor this
write('\x1b[I');

131 avatar Oct 13 '15 21:10 131

2 years later, i end up understanding that sending control chars (e.g. TAB) require a tty, not a pipe. Is it ok now ?

131 avatar Oct 15 '17 23:10 131

Hi isaacs ! I know how busy you are, maybe you don't want to touch this module anymore, do you prefer that I publish read myself (with another name) to access this feature ?

Thank you very much !

131 avatar Oct 17 '17 10:10 131

Rebased in https://github.com/npm/read/pull/51

wraithgar avatar Apr 12 '23 21:04 wraithgar

YES ! Thanks.

131 avatar Apr 20 '23 15:04 131