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

add push-line edit command #45

Open elaforge opened 7 years ago

elaforge commented 7 years ago

Zsh has a binding called push-line, which I bind to ^e. It pushes the current contents of the command line onto a stack, which is popped when you next hit return. It's useful when you start typing and realize you need to do something else first. Just hit ^e, type the other thing, hit return, and you're back to the original line.