Skip to content

Suggest a new feature. #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
newro opened this issue May 17, 2024 · 1 comment
Open

Suggest a new feature. #214

newro opened this issue May 17, 2024 · 1 comment

Comments

@newro
Copy link

newro commented May 17, 2024

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.

@GRbit
Copy link
Contributor

GRbit commented Mar 16, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants