curusarn / resh

RESH ❯❯ Contextual shell history for zsh and bash
MIT License
1.01k stars 19 forks source link

There should be a way to abort RESH-CLI that pastes the query "back" onto the command line #117

Closed curusarn closed 4 years ago

curusarn commented 4 years ago

This is a minor use-case but still:

Imagine you search for a command using resh-cli but you are not really sure if it's going to be there. You might want to start typing the command into the search box and if nothing pops up then abort the search and reuse the contents of the search box.

Alternative "use-case" is when you press ctrl+R on accident when you already had typed something on the command line. It would be nice to be able to abort without losing the query.

Taking suggestions for what keybinding should do this. How about: Ctrl+G ?

curusarn commented 4 years ago

https://github.com/curusarn/resh/commit/653974826cf0fadf771c396209afdf4c0b122b9c