Skip to content
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

Highlight atuin search query matches with color #1151

Open
ypid-work opened this issue Aug 4, 2023 · 1 comment
Open

Highlight atuin search query matches with color #1151

ypid-work opened this issue Aug 4, 2023 · 1 comment

Comments

@ypid-work
Copy link

Before using Atuin, I used:

function h {
    pattern="${1:-.}"

    if [[ "$pattern" == "." ]]; then
        omz_history -i
    else
        shift
        omz_history -i | grep -Eie "$pattern" "$@"
    fi
}

grep "by default" highlights the match with color like this:

image

Something similar could be a configuration option or command line switch for atuin search. What do you think?

@korniychuk
Copy link

Yes, it would be really helpful! In my opinion it's strange that it wasn't the first feature ...

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