isocline icon indicating copy to clipboard operation
isocline copied to clipboard

[Feature Request] Haskell: readline: Preinitialize input string

Open rpxrpxrpx opened this issue 3 years ago • 1 comments

Hi.

In my opinion it would be very useful if we could preinitialize the string like this:

readline “Please enter a start date“ “2022-01-16“

This would show the given prompt (parameter #1) and the user would be able to edit the String passed as parameter #2. The user would see this:

Please enter the start date> 2022-01-16

Is this a complex task?

Thank you for reading this.

rpxrpxrpx avatar Jan 16 '22 22:01 rpxrpxrpx

Ah, apologies for the late response! It looks like a nice extension; I'll look into it. Perhaps it can be done as an inline suggestion such that pressing completes it to the default input.

daanx avatar Feb 28 '22 03:02 daanx