haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

Allow to bind incremental search to a key #90

Closed boris-stepanov closed 5 years ago

boris-stepanov commented 6 years ago

87 Well, KillLine isn't a real key and it's a precedent, I think. This patch is the simplest solution that I can imagine, but I still want to make it more closer to Zsh by extending searchForPrefix state with previous cursor position.


This change is Reviewable

judah commented 5 years ago

Thank you for the patch! I've made some minor modifications and will submit this in #105.