atuin icon indicating copy to clipboard operation
atuin copied to clipboard

Highlight `atuin search` query matches with color

Open ypid-work opened this issue 1 year ago • 1 comments

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?

ypid-work avatar Aug 04 '23 16:08 ypid-work

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

korniychuk avatar Sep 21 '23 21:09 korniychuk