aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/search.rs (unfollow)
Commit message (Collapse)Author
2023-04-14Workspace reorder (#868)Vladislav Stepanov
* Try different workspace structure Move main crate (atuin) to be on the same level with other crates in this workspace * extract common dependencies to the workspace definition * fix base64 v0.21 deprecation warning * questionable: update deps & fix chrono deprecations possible panic sites are unchanged, they're just more visible now * Revert "questionable: update deps & fix chrono deprecations" This reverts commit 993e60f8dea81a1625a04285a617959ad09a0866.
2023-04-11Add `--reverse` to `atuin search` (#862)Tom Cammann
Add `-r/--reverse` flag to `atuin search` to allow searching by oldest results first. Example to find the oldest `cargo` command: ``` atuin search --limit 1 --reverse cargo ```
2023-04-07Fix --delete description (#853)Sandro
2023-03-29Add `--offset` flag to `atuin search` (#825)Tom Cammann
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 ```
2023-03-28Add more fields to `atuin search -f` formatting (#824)Tom Cammann
- Add `{exit}` which returns the exit code - Add `{relativetime}` which gives a relative time, e.g. "5h"
2023-03-27client filtering done in query (#629)jean-santos
2023-03-26chore: use fork of skim (#803)Conrad Ludgate
* use fuzzy-matcher instead of skim switch to a search-engine abstraction * fmt * fix deprecated warnings
2023-03-24Delete all instances of a command (#797)Ellie Huxtable
* 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
2023-03-20Add history deletion (#791)Ellie Huxtable
* 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
2023-03-19skim-demo (#695)Conrad Ludgate
* 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>
2023-03-14Prefer PWD environment variable over cwd if available to better support ↵Patrick Decat
symbolic links (#783)
2023-03-08Fix before/after combined with limit (#770)Ellie Huxtable
* 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
2023-03-05Up arrow filter_mode setting default to global filter mode (#758)Ellie Huxtable
Resolves #756
2023-02-10crossterm support (#331)Conrad Ludgate
* crossterm v2 * patch crossterm * fix-version * no more tui dependency * lints
2023-01-26feat(history): Add new flag to allow custom output format (#662)Baptiste
* feat(history): Add new flag to allow custom output format * more efficient formatting * add user and host * docs Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
2022-12-18Allow overriding filter and search modes from CLI (#635)Patrick Decat
* Allow overriding filter and search modes from CLI arguments * Use session filter mode for bash up key binding * We precisely do not want to add quotes here so that all arguments are properly passed * Add --shell-up-key-binding hidden command argument and filter_mode_shell_up_key_binding configuration option to allow customizing the filter mode used when atuin is invoked from a shell up-key binding * Correct up binding for zsh Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2022-12-16Switch to using ATUIN_LOG instead of RUST_LOG (#642)Ellie Huxtable
* Switch to using ATUIN_LOG instead of RUST_LOG * Stop clippy complaining * I should know better - clippy is never happy :(
2022-11-02Exit with return code 1 when no results are found in `atuin search` command ↵TymanWasTaken
(#489) * Exit with return code 1 when no results are found in `atuin search` command * Remove random whitespace
2022-10-21docs: add more details about date parsing in the stats command (#579)Benjamin Vergnaud
* docs: add more details about date parsing in the stats command * chore: Replace chrono-english crate with interim
2022-10-18Upgrade clap (#568)Conrad Ludgate
2022-10-14Add automatic update checking (#555)Ellie Huxtable
* Add automatic update checking * Add setting to opt out of update checks * Document options * no * no * also no * Make clippy happy * Update atuin-client/src/settings.rs Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> * fix features Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
2022-09-12custom history list (#524)Conrad Ludgate
* use custom list impl * fmt * segment * clean up * fix offsets * fix scroll back space * small touch ups
2022-09-12update default layout (#523)Conrad Ludgate
* update layouts * add other duration changes * fmt :(
2022-09-11better cursor search (#473)Conrad Ludgate
* improve cursor code * proper unicode support * refactor and test * fmt * clippy * move methods to state * refactor search modules
2022-06-13Batch key handling (#448)Frank Hamand
* Batch input events and only query once they are finished This simplifies the code a lot (no more bounded channel) and yields the same performance improvement with scroll wheel spam while fixing copy/paste * Clippy * fmt * Use blocking wait before emptying events channel This was causing a busy loop * Update query on filter mode change
2022-06-04[feature] Add scroll wheel support to interactive history search (#435)Frank Hamand
2022-05-24Implement cursor (#412)b3nj5m1n
2022-05-09Importer V3 (#395)Conrad Ludgate
* start of importer refactor * fish * resh * zsh
2022-05-08Add ctrl-k and ctrl-j for up and down (#394)Luke Baker
2022-04-28Search: Allow specifiying the limited of returned entries (#364)Jakob-Niklas See
This patch adds a new option to the search command, allowing to limit the returned results from the database.
2022-04-28ignore JetBrains IDEs, tidy-up imports (#348)Jakub Panek
* ignore JB IDEs * tidy-up imports * add rustfmt config
2022-04-25history list (#340)Conrad Ludgate
2022-04-22History filter (#329)Ellie Huxtable
* 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
2022-04-21refactor commands for better separation (#313)Conrad Ludgate
* refactor commands for better separation * fmt
2022-04-04Add compact mode (#288)Jakob Schrettenbrunner
2022-03-13Fix `history list --cwd` errors (#278)Lucas Burns
2021-12-20Do not crash if the history timestamp is in the future (#250)Ellie
Resolve #189 We were throwing an OutOfRangeError. This occurs when you attempt to convert to a duration, and your input is <0. A value in the future would have done this. This is especially noticeable during DST...
2021-12-17Add Alt+backspace and Ctrl+u keybinds for deleting by word and by line, ↵Mat Jones
respectively (#243) * remove unused environment var loading entire history into an env var * Add Alt+backspace and Ctrl+u keybinds for deleting by word and by line, respectively
2021-09-24Resolve clippy warnings (#187)Jannik
* refactor: nest or patterns * refactor: fix clippy lint names * refactor: remove unnecessary wraps * style: apply cargo fmt
2021-05-10Release v0.7.0 (#103)Ellie Huxtable
* Release v0.7.0 - Update all the crate versions - Update the demo gif - Write a changelog - Adjust the title of the search screen (has the old name still) - Adjust the colours of the quick-jump numbers (sadly invisible on some colour schemes as dark grey :/) * Update README, default config file, docs * Link usernames * Trigger release workflow upon release creation, as well as tags
2021-05-10Implement 'quick access' via Alt-<n> (#79)Yuvi Panda
* Implement 'quick access' via numbers Puts numbers 0-9 next to commands *above* current selection. Ctrl-<number> should activate them - but since Ctrl-<num> are reserved by terminal, this does not currently work. Need to find different sets of keyboard shortcuts. Numbers are *above* current selection, since the user must use the arrow keys to go over the commands below current selection before reaching selection. * Use Alt+<n> to select last nth command * Don't print Opt+0 Same as <Enter> * Run rustfmt * Simplify code - Use ? operator for getting selected item - Use RangeInclusive to check if character pressed is a number
2021-05-09Use format! instead of string concat (#94)Yuvi Panda
Cleaner
2021-05-09Add Emacs style ctrl-g, ctrl-n, and ctrl-p (#77)Will Fancher
2021-05-09Allow listing or searching with only the command as output (#89)Ellie Huxtable
Should be useful for using other tools, such as FZF
2021-05-09Support fulltext search of commands (#75)Yuvi Panda
2021-05-08Retain the query entered into the TUI (#76)Ellie Huxtable
If no results are found, and the user presses enter, keep the query! Resolves #73
2021-05-08Add Ctrl-d as a way of exiting the TUI (#65)Jamie Quigley
2021-05-08Allow using Ctrl-c to exit (#53)Ellie 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