atuinsh / atuin

✨ Magical shell history
https://atuin.sh
MIT License
20.53k stars 558 forks source link

[Bug]: Missing entries in interactive search #2048

Open arnfaldur opened 4 months ago

arnfaldur commented 4 months ago

What did you expect to happen?

Within nushell, when I invoke the interactive atuin search using C-r, I expect to be able to find old entries. The cutoff seems to be from the entries that I imported from xonsh-sqlite.

What happened?

It doesn't show them.

I can see the entries in the atuin history.db file, so they're there.

atuin search also shows these entries. atuin search -i doesn't however. There are ~42k entries in the history. The interactive prompt counts these correctly.

I only found an issue with a similar thing happening on zsh/bash but that was resolved with an update. Updating from the main branch, tagged 0.18.1 to the official 0.18.2 release had no effect on this issue.

Atuin doctor output

atuin:
  version: 18.2.0
  sync: null
shell:
  name: nu
  default: unknown
  plugins:
  - atuin
system:
  os: Arch Linux
  arch: x86_64
  version: unknown

I'd rather not share my disk layout.

Code of Conduct

yjhn commented 3 months ago

Have you tried different filter modes in the TUI? Maybe the default mode filters commands from a different shell out for some reason.

arnfaldur commented 1 week ago

I had not tried that @yjhn I do indeed see much older entries when set to [ DIRECTORY ] as opposed to [ GLOBAL ], very strange.

I have no idea why this would be or how to fix it though. Any ideas?