askai icon indicating copy to clipboard operation
askai copied to clipboard

readline support

Open andyDoucette opened this issue 2 years ago • 3 comments

It would be a nice addition if askai live prompt used gnu readline so we we can use the shortcuts we've gotten used to at the prompt. For example:

  • Ctrl-Left to go back a word.
  • Ctrl-K to cut things to the right of the cursor
  • Ctrl-W to cut a single word and add it to the buffer.
  • Ctrl-Y to paste the buffer

It's helpful when you want to edit a word 4 words ago. Ctrl-w-w-w, edit, Ctrl-y and it's done.

andyDoucette avatar Dec 08 '22 04:12 andyDoucette