atuinsh / atuin

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

Move to a background daemon #1661

Open ellie opened 9 months ago

ellie commented 9 months ago

See discussion for full details: https://forum.atuin.sh/t/moving-atuin-to-a-daemon/78

This has been on my mind for a long time, and after some discussion I think it should go ahead.

This would allow for

  1. Far less risk of blocking shells (slow filesystems and other such errors)
  2. Easy scheduling of periodic maintenance (eg, sqlite vacuum)
  3. Real time sync - sync will not need to be prompted by shell activity

The part of Atuin that runs in the shell can then shift to just send data over some sort of IPC, and become very minimal.

Opening this issue to track

dbaynard commented 2 weeks ago

After #2006 (which is working well, for me), what remains to resolve this?

(I came here from #1455 which says it's blocked on this issue — I'm interested in the exit code filtering in the ctrl-r UI.)