aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/database.rs (unfollow)
Commit message (Collapse)Author
2022-03-18Improve fuzzy search (#279)Patrick
* Add SearchMode fzf. Add a new search mode "fzf" that tries to mimic the search syntax of https://github.com/junegunn/fzf#search-syntax This search mode splits the query into terms where each term is matched individually. Terms can have operators like prefix, suffix, exact match only and can be inverted. Additionally, smart-case matching is performed: if a term contains a non-lowercase letter the match will be case-sensitive. * PR feedback. - Use SearchMode::Fuzzy instead of SearchMode::Fzf - update docs - re-order tests so previous fuzzy tests come first, add more tests for each operator * PR comments: remove named arguments, match expression * PR comments: macro -> async func
2022-03-13Fix `history list --cwd` errors (#278)Lucas Burns
2021-12-19use sqlite grouping rather than subquery (#181)Mark Wotton
2021-09-09Reordered fuzzy search (#179)Mark Wotton
* add test demonstrating problem * add a reordered fuzzy-search mode that presents shorter matches first, rather than using strict chronological ordering. * fix warnings, refactor interface to minspan slightly
2021-06-01Add fuzzy text search mode (#142)Frank Hamand
2021-05-09Support fulltext search of commands (#75)Yuvi Panda
2021-04-26Pre release polishing (#42)Ellie Huxtable
* Improve readme * Add demo gif * Update readme * Add mac build * Amend release config * Update gif
2021-04-25Revert to storing history as nanosEllie Huxtable
2021-04-25Update docs, unify on SQLx, bugfixes (#40)Ellie Huxtable
* Begin moving to sqlx for local too * Stupid scanners should just have a nice cup of tea Random internet shit searching for /.env or whatever * Remove diesel and rusqlite fully
2021-04-21Bugfixes, show time ago, perf improvementsEllie Huxtable
Also allow unique listing and more ergonomic cwd usage
2021-04-20Use cargo workspaces (#37)Ellie Huxtable
* Switch to Cargo workspaces Breaking things into "client", "server" and "common" makes managing the codebase much easier! client - anything running on a user's machine for adding history server - handles storing/syncing history and running a HTTP server common - request/response API definitions, common utils, etc * Update dockerfile
2021-04-20Switch to Warp + SQLx, use async, switch to Rust stable (#36)Ellie Huxtable
* Switch to warp + sql, use async and stable rust * Update CI to use stable
2021-04-13Add history sync, resolves #13 (#31)Ellie Huxtable
* Add encryption * Add login and register command * Add count endpoint * Write initial sync push * Add single sync command Confirmed working for one client only * Automatically sync on a configurable frequency * Add key command, key arg to login * Only load session if it exists * Use sync and history timestamps for download * Bind other key code Seems like some systems have this code for up arrow? I'm not sure why, and it's not an easy one to google. * Simplify upload * Try and fix download sync loop * Change sync order to avoid uploading what we just downloaded * Multiline import fix * Fix time parsing * Fix importing history with no time * Add hostname to sync * Use hostname to filter sync * Fixes * Add binding * Stuff from yesterday * Set cursor modes * Make clippy happy * Bump version
2021-04-06Bump rusqlite from 0.24.2 to 0.25.0 (#30)dependabot[bot]
* Bump rusqlite from 0.24.2 to 0.25.0 Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.24.2 to 0.25.0. - [Release notes](https://github.com/rusqlite/rusqlite/releases) - [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md) - [Commits](https://github.com/rusqlite/rusqlite/compare/v0.24.2...v0.25.0) Signed-off-by: dependabot[bot] <support@github.com> * Fixes for new rusqlite (mostly the new Params trait) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ellie Huxtable <e@elm.sh>
2021-03-20Add TUI, resolve #19, #17, #16 (#21)Ellie Huxtable
2021-02-15Satisfy clippyEllie Huxtable
2021-02-15Allow listing by current directory and/or sessionEllie Huxtable
2021-02-14Add stats command (#9)Ellie Huxtable
* Add stats command For example atuin stats day yesterday atuin stats day last friday atuin stats day 01/01/21 * Output tables, fix import blanks
2021-02-14a few more tiny touch ups (#7)Conrad Ludgate
* a few more tiny touch ups * all praise clippy
2021-02-14tidy some stuff (#6)Conrad Ludgate
2021-02-14Neaten the history listing code (#5)Ellie Huxtable
I'd like to reduce the amount of SQL in the database code. Make it as generic as possible, and later on perhaps expose a generic "execute" function. This function can be used by analysis commands, and the SQL can live there - rather than database.rs being a huge bag of SQL.
2021-02-14Make pedantic clippy happyEllie Huxtable
2021-02-13Add fuzzy history search and distinct argEllie Huxtable
2021-02-13Add sessionsEllie Huxtable
2021-02-13Implement history importEllie Huxtable
2021-02-13Record command exit code and durationEllie Huxtable
2020-10-05feat: use directories project data dirConrad Ludgate
chore: clean up some things