I’d like to understand what atuin search is doing, because it’s definitely not doing what I expect.
I have a lot of curl
commands in my history. If I pull up atuin’s history TUI and type curl
I get the most recent curl command. So far so good. However, suppose I want to find the last time I curl’d my self-hosted atuin endpoint.
I type curl atuin
in the search history, and what I see has no apparent connection to it:
4 328ms 5mo ago curl -v https://api.github.com/repos/offbyone/ideas/commits/main
3 6s 5mo ago be rubocop --autocorrect-all --only Lint/ParenthesesAsGroupedExpression
2 23ms 5mo ago export bash <(curl --proto '=https' --tlsv1.2 -sSf https://setup.atuin.sh)
1 5s 5mo ago be rubocop --autocorrect --only Layout/ArgumentAlignment
> 519ms 3mo ago curl http://shop-data-s-4vcpu-16gb-320gb-intel-nyc3-01.tail9a8e5.ts.net:9242/
[ GLOBAL ] curl atuin
I expect to see curl https://atuin.camel-tortoise.ts.net/
there – it’s the history entry where curl
and atuin
occur closest to the start of the string and to each other.
For comparison, if I dump out history into fzf (atuin history list --print0 --cmd-only | fzf --read0 --no-mouse
):
curl -H "Host: atuin" http://localhost:3123/ │
curl -H 'Host: atuin' 100.87.119.29:80 │
curl atuin.camel-tortoise.ts.net:80 │
curl atuin.camel-tortoise.ts.net │
> curl atuin │
1008/16815 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> curl atuin
That gets me much better results.
Is there an atuin configuration I can tweak to improve these? Am I misusing search somehow?