aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src (follow)
Commit message (Collapse)AuthorAge
* fix: initial list of history in workspace mode (#1356)Ellie Huxtable2023-10-29
| | | | The initial list didn't correctly show all history while in workspace mode, while it worked totally as expected while searching. Fix this.
* Fix deleted history count (#1328)Ellie Huxtable2023-10-25
|
* Correct some secrets filter regex (#1326)Ellie Huxtable2023-10-25
|
* Add enter_accept to immediately execute an accepted command (#1311)Ellie Huxtable2023-10-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * make enter execute the command, tab copy it * Add config for enter_accept enter_accept will make Atuin immediately accept an execute a command when selected. It defaults to false in our binary, but the default config enables it. This means that users who already use atuin will not default to the new behaviour unless they opt in, but new users will have it by default. Thanks to @davidhewitt for the patch and bulk of this implementation! Currently we have it just for zsh, but I'll follow up with other shells (unless anyone beats me to it :D) * Add docs * we need to tidy up the ui code anyway * Check if using zsh * Update docs/docs/config/config.md Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> --------- Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
* Add commands to print the default configuration (#1241)Tobias Genannt2023-10-12
| | | | | | | | | | | | | * Add commands to print the default configuration When updating a software I often want to compare my configuration with the configuration of the new version. To make this possible atuin can now print the default configuration. This also updates the example files with the actual values used as default in the settings.rs files. * Changed command name to 'default-config' * Fixed merge
* clear history id (#1263)Conrad Ludgate2023-10-08
| | | | | * clear history id * fix nu
* Fix/1207 deleted entries shown in interactive search (#1272)Dieter Eickstaedt2023-10-04
|
* fix sync timestamps (#1258)Conrad Ludgate2023-09-28
| | | | | | | * fix timestamp * add sync test * skip all sync tests
* handle missing entries (fixes #1236) (#1253)Conrad Ludgate2023-09-26
| | | | | * fix #1236 * lints
* better sync error messages (#1254)Conrad Ludgate2023-09-26
|
* refactor: Duplications reduced in order to align implementations of reading ↵Dieter Eickstaedt2023-09-23
| | | | history files (#1247)
* Add connect timeout and overall timeout (#1238)Ellie Huxtable2023-09-18
| | | | | | | | | * Add connect timeout and overall timeout * Make it configurable * Fix test * Add docs
* feat(keyup): Configure SearchMode for KeyUp invocation #1216 (#1224)Dieter Eickstaedt2023-09-17
| | | | | | | | | | | * feat(keyup): Configure SearchMode for KeyUp invocation #1216 * docs: adjusted search mode documentation * feat: setting search mode on engine * chore: cargo fmt * chore: removed redundant field name
* replace chrono with time (#806)Conrad Ludgate2023-09-11
| | | | | | | | | * replace chrono with time * Fix test chrono usage --------- Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
* Automatically filter out secrets (#1182)Ellie Huxtable2023-08-19
| | | | | | | | | | | | | | I'd like to extend the regex list here very soon, but start off by automatically filtering out secrets. Do not store them in history! I've included regex for: 1. AWS key id 2. Github pat (old and new) 3. Slack oauth tokens (bot, user) 4. Slack webhooks 5. Stripe live/test keys Will need updating after #806
* Update dependencies (#1181)Conrad Ludgate2023-08-18
|
* Add kv map builder and list function (#1179)Ellie Huxtable2023-08-18
| | | | | | | | | | | | | | | * Add kv map builder and list function 1. BREAKING - default namespace is now called "default" 2. Build an in-memory hashmap from the kv store 3. Allow listing I need to cache the hashmap next, probs with a write-through to avoid constant rebuilds. Also check if BTreeMap is suitable. Sorted is useful for listing but there's probs a better ds to use. * Allow pure kv set, no filesystem
* Fix client-only builds (#1155)Ellie Huxtable2023-08-07
|
* Prepare release v16.0.0 (#1143)Ellie Huxtable2023-08-07
| | | | | | | | | * Prepare release v16.0.0 * Remove debug output * Fix kv dupes if the store already exists * Add limit in frontend as well as sync backend
* encode paseto payloads as json (#1146)Conrad Ludgate2023-08-02
|
* Add support for `max_preview_height` setting (#1088)Richard Jones2023-07-31
|
* Drop default sync frequency to 10m (#1130)Ellie Huxtable2023-07-28
|
* use Ctrl-n instead of Alt-n on macOS (#1106)Richard Turner2023-07-27
| | | | | * use Ctrl-n instead of Alt-n on macOS * make ctrl-n instead of alt-n configurable
* Add workspace mode, enable if in git repo (#1053)Ellie Huxtable2023-07-14
| | | | | | | | | * Add workspace mode, enable if in git repo * Fix tests * Should now be good * Page filter modes correctly if in workspace
* Add new sync (#1093)Ellie Huxtable2023-07-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add record migration * Add database functions for inserting history No real tests yet :( I would like to avoid running postgres lol * Add index handler, use UUIDs not strings * Fix a bunch of tests, remove Option<Uuid> * Add tests, all passing * Working upload sync * Record downloading works * Sync download works * Don't waste requests * Use a page size for uploads, make it variable later * Aaaaaand they're encrypted now too * Add cek * Allow reading tail across hosts * Revert "Allow reading tail across hosts" Not like that This reverts commit 7b0c72e7e050c358172f9b53cbd21b9e44cf4931. * Handle multiple shards properly * format * Format and make clippy happy * use some fancy types (#1098) * use some fancy types * fmt * Goodbye horrible tuple * Update atuin-server-postgres/migrations/20230623070418_records.sql Co-authored-by: Conrad Ludgate <conradludgate@gmail.com> * fmt * Sort tests too because time sucks * fix features --------- Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
* write some key tests (#1095)Conrad Ludgate2023-07-14
|
* fix key encodings again (#1089)Conrad Ludgate2023-07-08
|
* record encryption (#1058)Conrad Ludgate2023-06-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * record encryption * move paserk impl * implicit assertions * move wrapped cek * add another test * use host * undo stray change * more tests and docs * fmt * Update atuin-client/src/record/encryption.rs Co-authored-by: Matteo Martellini <matteo@mercxry.me> * Update atuin-client/src/record/encryption.rs Co-authored-by: Matteo Martellini <matteo@mercxry.me> * typo --------- Co-authored-by: Matteo Martellini <matteo@mercxry.me>
* remove decryption from api-client (#1063)Conrad Ludgate2023-06-21
|
* remove rmp-serde (#1057)Conrad Ludgate2023-06-18
| | | | | * remove rmp-serde * use version info
* Builder interface for History objects (#933)Vlad Stepanov2023-06-15
| | | | | | | | | | | | | | | | | | | | | | * [feature] store env variables in History records WIP: remove `HistoryWithoutDelete`, add some docstrings, tests * Create History objects through builders. Assure in compile-time that all required fields are set for the given construction scenario * (from #882) split Cmd::run into subfns * Update `History` doc * remove rmp-serde from history * update warning --------- Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
* Add namespaces to kv store (#1052)Ellie Huxtable2023-06-15
|
* Key values (#1038)Ellie Huxtable2023-06-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Start testing * Store host IDs, not hostnames Why? Hostnames can change a lot, and therefore host filtering can be funky. Really, all we want is a unique ID per machine + do not care what it might be. * Mostly just write a fuckload of tests * Add a v0 kv store I can push to * Appending works * Add next() and iterate, test the pointer chain * Fix sig * Make clippy happy and thaw the ICE * Fix tests' * Fix tests * typed builder and cleaner db trait --------- Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
* 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