aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src (follow)
Commit message (Collapse)AuthorAge
...
* Fix `--delete-it-all` and `--delete` commands (#913)J. Emiliano Deustua2023-06-13
| | | | | | | | | | | | | | | | | | | | * Add `delete_at` is null condition during search Since entries are searched everytime a delete process ends, the --delete-it-all command will enter an infinite loop if searching the whole history. * Remove command blanking Command blanking may violate the `unique(timestamp, cwd, command)` condition. * Overwrite command with random string when deleting * Add rand dependency to client crate --------- Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
* add support to override hostname and username via env var (#1041)Peter Brunner2023-06-12
|
* Add option to completely disable help row (#993)Hilmar Wiegand2023-05-22
| | | | | | | * Add option to completely disable help row * Pass full settings object to draw command * Add documentation for show_help
* Input bar at the top if we are in inline mode (#866)Ellie Huxtable2023-05-21
| | | | | | | | | | | | | | | | * Put input chunk at the top in inline mode * Invert the search results if bar is at top * fix styling on reversed rendering * add setting * settings --------- Co-authored-by: Patrick Decat <pdecat@gmail.com> Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
* Allow server configured page size (#994)Ellie Huxtable2023-05-21
| | | | | | | * Allow server configured page size * Backwards compat via semver checks * Correct header name
* Restructure account commands to account subcommand (#984)Ellie Huxtable2023-05-17
| | | | | | | | | | | | | | | | | | | * Stop running triggers on history delete * Move to account management dir * Alter trigger function to only run for inserts * wip * Add atuin account subcommands, and re-org delete * Clarify docs * Delete silly dupe migration * Um where did this come from * Oops, insert only plz
* feat: add delete account option (attempt 2) (#980)Yannick Ulrich2023-05-16
| | | | | | | | | | | | | | | * Added DELETE register endpoint * Added remove function to database * Added unregister to client * Updated docs * Renamed functions * Reformatting * Used execute instead of fetch in delete_user
* Fix key regression introduced (#974)Ellie Huxtable2023-05-11
|
* Patch bash history import regression (#970)Ellie Huxtable2023-05-10
| | | | | | | | * At least patch this on the server side so we don't loop forever * Postgres doesn't support <microsecond precision Use millis - almost everything should support them and they are still faster than a human can reasonably spam a button.
* cwd_filter: much like history_filter, only it applies to cwd (#904)Kjetil Jørgensen2023-05-02
| | | | | * cwd_filter: much like history_filter, only it applies to cwd * appease clippy
* chore: uuhhhhhh crypto lol (#805)Conrad Ludgate2023-04-17
| | | | | | | | | * chore: uuhhhhhh crypto lol * remove dead code * fix key decoding * use inplace encryption
* Improve error message for issue #850. (#876)postmath2023-04-14
| | | | | * Improve error message for issue #850. * Applied cargo fmt, doh.
* Workspace reorder (#868)Vladislav Stepanov2023-04-14
| | | | | | | | | | | | | | | | | | * 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.
* Switch to uuidv7 (#864)Ellie Huxtable2023-04-11
| | | | | | | | | * Add uuid_v7 * Actually use the new uuid * Add a test to ensure all uuids are unique, even in a tight loop * Make clippy happy
* Add `--reverse` to `atuin search` (#862)Tom Cammann2023-04-11
| | | | | | | | | 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 ```
* Use XDG data directory for fish import (#851)János Illés2023-04-08
| | | | | | | | | | | | | * Use XDG data directory for fish import On MacOS, atuin was looking for fish history under "$HOME/Library/Application Support". Now atuin honors XDG_DATA_HOME, if set, and otherwise uses "$HOME/.local/share". * cargo fmt --------- Co-authored-by: Charles Gould <charles@gould.dev>
* Handle empty lines when importing from Bash (#845)cyqsimon2023-04-05
| | | | | | | * Handle empty lines * Fix insufficient accuracy in timestamp tests * Use nanoseconds
* Updated client config docs (#839)cyqsimon2023-04-05
| | | | | | | | * Updated client config docs - Example `config.toml` now includes all the newest options - `settings.rs`, `config.toml`, and `config.md` now have uniform option order * Remove trailing space
* Fix deleting history that doesn't exist yet (#844)Ellie Huxtable2023-04-05
| | | | This can occur if history has been added + then deleted on a machine before it has a chance to be synced to a new one.
* 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
* feat: add *Nushell* support (#788)Steven Xu2023-03-26
| | | | | | | | | * feat: add *Nushell* support * refactor: use `sh` to swap `STDOUT` and `STDERR` instead of using a temporary file * feat: include both keybindings, with the current REPL buffer passed to *Atuin*'s * feat: don't record commands run by keybindings
* feat: add an inline view mode (#648)Patrick Decat2023-03-25
| | | | | * add inline viewport * Add inline_height setting. Zero disables inline mode (the default)
* 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
* Allow changing search_mode during interactive search (#586)Krut Patel2023-03-22
| | | | | | | | | | | | | | | * Make search_mode a part of SearchState * Allow changing search mode using ctrl+s * Tweak state reset for switched_search_mode * Improve search_mode display in interactive mode * Incorporate review suggestion * Tweak language * Fix Clippy and format
* Fix skim search (#795)Ellie Huxtable2023-03-21
|
* Support old msgpack (#794)Ellie Huxtable2023-03-20
| | | | | | | | | | | | | | | | * Support old msgpack I forgot it isn't backwards compatible... This should fix any sync issues resulting from the deletion PR * Update atuin-client/src/encryption.rs Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> * Bye bye unwrap --------- Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
* 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)
* Allow specifying fulltext as well as full-text (#771)Ellie Huxtable2023-03-09
|
* 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
* fix(client): always read session_path from settings (#757)Luke Karrys2023-03-06
| | | | | | | * fix(client): always read session_path from settings * fixup! fix(client): always read session_path from settings * fixup! fix(client): always read session_path from settings
* feat: add common default keybindings (#719)Steven Xu2023-03-05
| | | | | | | | | * feat: add common default keybindings * feat: add `WORD_SEPARATORS` to config as `word_chars`, as this is what *Zsh* calls it * feat: add option for *Emacs* word jumping * feat: scroll with `PageUp` and `PageDown`, cf #374
* Up arrow filter_mode setting default to global filter mode (#758)Ellie Huxtable2023-03-05
| | | Resolves #756
* Show preview of selected command (#643)Patrick Decat2023-03-05
| | | | | | | | | | | | | | | | | | | | | | | | | * Only show help if terminal strictly has more than one line * There is no border around the input line in compact mode * Add command preview * Dynamic preview height * Avoid extra allocations Co-authored-by: Conrad Ludgate <oon@conradludgate.com> * Address clippy error * Merge normal and compact views code * Add show_preview setting, disabled by default * Convert `bool` to `int` with `if` for legibility --------- Co-authored-by: Conrad Ludgate <oon@conradludgate.com>
* Rework Bash import (#747)cyqsimon2023-03-02
| | | | | | | | | * Rework Bash import Closes #745 - Imported history is now ordered correctly - Timestamps (when `HISTTIMEFORMAT` is set) are handled correctly * Timestamp tests test for strict sorting
* Add `history_filter` cfg to exclude commands from history (#515) (#716)Johannes Baiter2023-02-14
| | | | | Adds a new `history_filter` setting through which users can specify a list of regular expressions that match commands that should not be recorded in the history.
* crossterm support (#331)Conrad Ludgate2023-02-10
| | | | | | | | | | | * crossterm v2 * patch crossterm * fix-version * no more tui dependency * lints
* display mnemonic key (#694)Conrad Ludgate2023-02-06
|
* 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
* Allow overriding filter and search modes from CLI (#635)Patrick Decat2022-12-18
| | | | | | | | | | | | | * 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>
* 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 setting for keeping typed query when exiting (#451)Sam Lanning2022-11-06
| | | | | | | * Add option for keeping typed query on escape fixes #422 * chore: Address duplicate if statement blocks
* 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>
* Make fuzzy search the default (#591)Ellie Huxtable2022-11-02
|
* docs: add more details about date parsing in the stats command (#579)Benjamin Vergnaud2022-10-21
| | | | | * docs: add more details about date parsing in the stats command * chore: Replace chrono-english crate with interim
* Never use HISTFILE for fish shell import (#573)Patrick Jackson2022-10-19
|