How to insert text into input prompt using ZSH ZLE

Viewed 1453

I'd like to have a keybinding, that would paste text at the cursor within a prompt.

For example:

Prompt: ls _

Press CTRL-Z

Prompt: ls textGoesHere

I'm creating a ZSH ZLE widget, but I can't figure out how to achieve the above.

1 Answers
Related