News for hackers. Stuff that matters.
Re:Atuin replaces your existing shell history with a SQLite ... by jefftk on Saturday May 06, 2023 @12:31PM (#35842888)
With a small enough corpus, full text search does not require an index to be instantaneous, and 100k entries is easily small enough for that.

Additionally, everything you describe can be phrased as a regular expression.

Re:Atuin replaces your existing shell history with a SQLite ... by bastawhiz on Saturday May 06, 2023 @01:03PM (#35843225)
Sometimes it's nice to not manually write a regexp to find all of the variants of every word or deal with arbitrary ordering of substrings. And if you're using SQLite and fts5 is installed, why not just create a virtual full text search table with one command and use that? With a small enough corpus, it's a meaningless distinction to bikeshed about the implementation: the easiest solution to build is the best. 500MB of disk space for a pet project that gives you convenience is a terrifically small amount of storage. I have videos that I recorded on my phone that take up more than double that.