hishtory icon indicating copy to clipboard operation
hishtory copied to clipboard

Suggest a new feature.

Open newro opened this issue 1 year ago • 1 comments

I think hishtory is a really cool program.

However, there are two things that I'm wanted about.

  1. I want to save only the exit 0 command.
  2. I want to add additional comments to the saved history and search for those keywords as well. For example, the format of the command is the same, but the value I need to execute depends on what I'm searching for, and it's hard to find the command with the value I want among so many similar items. This will help me find the command with the value I want.

I look forward to improving these two features. Thank you for creating such a useful program.

newro avatar May 17 '24 16:05 newro

I can give you a simple advice for the 2nd use-case: just add a comment

If I need to be able to find my command easily whether it's fzf or hishtory I just run it like this:

$ my very long command I want to memorize # some tag info for search

all the things after # will be ignored by bash, but will be searchable

Also, can please elaborate a bit on your first request? Like why don't you want to have non-zero exit code commands saved?

GRbit avatar Mar 16 '25 23:03 GRbit