aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/database.rs (follow)
Commit message (Collapse)AuthorAge
* Add `--offset` flag to `atuin search` (#825)Tom Cammann2023-03-29
| | | | | | | | | | | | This flag allows the user to continue searching at an offset. This is useful for building tools that use atuin to search for previous commands and return only one result. ``` atuin search --limit 1 atuin search --limit 1 --offset 1 atuin search --limit 1 --offset 2 ```
* client filtering done in query (#629)jean-santos2023-03-27
|
* chore: use fork of skim (#803)Conrad Ludgate2023-03-26
| | | | | | | | | * use fuzzy-matcher instead of skim switch to a search-engine abstraction * fmt * fix deprecated warnings
* Delete all instances of a command (#797)Ellie Huxtable2023-03-24
| | | | | | | | | | | | | | | | | | * Delete all instances of a command Our search command will de-dupe results by default. But... This isn't great for deleting! You don't want to run it over-and-over-and-over until all commands are deleted. Loop the query, and keep on deleting what it returns until they are all gone. * Optimize delete upload It was running a request for every element, on every sync lol Only push a delete if needed Future: push all deletes in one request
* Fix skim search (#795)Ellie Huxtable2023-03-21
|
* Add history deletion (#791)Ellie Huxtable2023-03-20
| | | | | | | | | | | | | * Drop events. I'd still like to do them, but differently * Start adding delete api stuff * Set mailmap * Delete delete delete * Fix tests * Make clippy happy
* skim-demo (#695)Conrad Ludgate2023-03-19
| | | | | | | | | | | | | | | * skim-demo * skim some more * Weight first word match higher (#712) * some improvements * make skim opt-in --------- Co-authored-by: Frank Hamand <frankhamand@gmail.com>
* Prefer PWD environment variable over cwd if available to better support ↵Patrick Decat2023-03-14
| | | | symbolic links (#783)
* Fix before/after combined with limit (#770)Ellie Huxtable2023-03-08
| | | | | | | | | | | | | | * Fix before/after combined with limit Mixing filters done in Rust with filters done in SQL is _no bueno_. Been meaning to do this for a while anyways. Search params are getting a bit fat but oh well! * Make an excuse for a big function sig * Do options map_or not if * Fix tests
* Try to make clippy happy 🥺 (#686)Ellie Huxtable2023-02-06
| | | | | | | * Try to make clippy happy 🥺 * Fmt * I missed one (can't run clippy locally on airport wifi...)
* Improve error message when $AUTIN_SESSION is not set. (#654)Jamie Quigley2022-12-27
| | | Closes #653
* Switch to using ATUIN_LOG instead of RUST_LOG (#642)Ellie Huxtable2022-12-16
| | | | | | | * Switch to using ATUIN_LOG instead of RUST_LOG * Stop clippy complaining * I should know better - clippy is never happy :(
* Add local event log storage (#390)Ellie Huxtable2022-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add event data structures This adds the data structures required to start syncing events, rather than syncing history directly. Adjust event Fix Add event data structure to client * Add server event table sql * Add client event table migration Adjust migration * Insert into event table from client * Add event merge function Right now this just ensures we have the right amount of events given the history we have BUT it will also be used to merge CREATE/DELETE events, resulting in history being deleted :) * Make CI happy * Adjust * we don't limit history length any more * Update atuin-client/src/database.rs Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> * fix usage * Fix typo * New Rust, new clippy stuff Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
* better cursor search (#473)Conrad Ludgate2022-09-11
| | | | | | | | | | | | | | | * improve cursor code * proper unicode support * refactor and test * fmt * clippy * move methods to state * refactor search modules
* Importer V3 (#395)Conrad Ludgate2022-05-09
| | | | | | | | | * start of importer refactor * fish * resh * zsh
* ignore JetBrains IDEs, tidy-up imports (#348)Jakub Panek2022-04-28
| | | | | | | * ignore JB IDEs * tidy-up imports * add rustfmt config
* fix db range query (#351)Conrad Ludgate2022-04-26
|
* sql builder (#333)Conrad Ludgate2022-04-23
| | | | | | | * start * clean up * refactor globs
* Fix empty queries with filters (#332)Ellie Huxtable2022-04-22
|
* History filter (#329)Ellie Huxtable2022-04-22
| | | | | | | | | | | | | | * Add history filters, and hotkey toggle Switch between different search modes to narrow down the history you want - global search for all history, host for all history from your current machine, session for the current shell session, and directory for the current directory The default can be configured via `filter_mode` * Update docs * Add context
* A few minor tweaks (#314)Conrad Ludgate2022-04-21
| | | | | | | | | * use bail macro replace client database errors remove dead code * fix test
* provide better error messages (#300)Conrad Ludgate2022-04-13
|
* Improve fuzzy search (#279)Patrick2022-03-18
| | | | | | | | | | | | | | | | | | | | | * 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
* Fix `history list --cwd` errors (#278)Lucas Burns2022-03-13
|
* use sqlite grouping rather than subquery (#181)Mark Wotton2021-12-19
|
* Reordered fuzzy search (#179)Mark Wotton2021-09-09
| | | | | | | | * 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
* Add fuzzy text search mode (#142)Frank Hamand2021-06-01
|
* Support fulltext search of commands (#75)Yuvi Panda2021-05-09
|
* Pre release polishing (#42)Ellie Huxtable2021-04-26
| | | | | | | | | | | | | * Improve readme * Add demo gif * Update readme * Add mac build * Amend release config * Update gif
* Revert to storing history as nanosEllie Huxtable2021-04-25
|
* Update docs, unify on SQLx, bugfixes (#40)Ellie Huxtable2021-04-25
| | | | | | | | | * 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
* Bugfixes, show time ago, perf improvementsEllie Huxtable2021-04-21
| | | | Also allow unique listing and more ergonomic cwd usage
* Use cargo workspaces (#37)Ellie Huxtable2021-04-20
* 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