OrkoHunter/keep

Using `~/.zsh_history` to keep commands

TwistingTwists opened this issue · 6 comments

How can I use commands from ~/.zsh_history in keep?

something like, keep ssh from history -- gives me option to choose from all the commands that have ssh in them (via grep?)

This looks like a new feature. Cool. I'll try to implement that.

A fair alternative can be using reverse search by Control + R and passing it to keep.

@OrkoHunter Should this be another option in keep new or another command like keep addfromhist?

There should be only one way to add commands, and let that be keep new

@Parth-Vader While taking input for a new command, how about displaying a list of options to select from? The options will be based from the shell history and would be in the form of a drop down. How about this?

I agree.

For now, the options could be

  1. Add a new command
  2. Add a command from history