aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client (follow)
Commit message (Collapse)AuthorAge
* 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>
* Revert "Remove shortcut numbers (#708)" (#724)Ellie Huxtable2023-02-24
| | | This reverts commit 3fdd4f4591bc573906480c1c700df91ba866a2cb.
* Remove shortcut numbers (#708)Ellie Huxtable2023-02-15
| | | | | | | | * Remove shortcut numbers I was also going to remove the offset so scrolling only happens at the top. But tbh, I quite like it this way. * Remove key binding
* Check before unwrapping in stats (#717)Ellie Huxtable2023-02-14
| | | Should fix the error @pdecat found!
* 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.
* Allow using existing key file on login (#688)Trygve Aaberge2023-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | * Allow logging in without overwriting existing key file If the given key on login in empty, keep the existing key file rather than overwriting it with an empty file. This is useful if you log out and want to log in again and still use the same key, or if you have copied over the key file rather than providing it as input. * Refuse logging in if key is empty Before the previous commit, an empty key file would be created if key wasn't specified, and after the previous commit, the key file would not be created if the key wasn't specified and stay empty if it was empty. Now the log command checks the key file if a key is not specified and exits with an error message if either the key file couldn't be opened or is empty. If a key is specified, the key file is just created with it as before. * Validate the key on login, create new if no exists After reading the key either from an existing key file, or from the user input, validate that the provided key is valid (rather than just checking that it isn't empty). If no key file exists, create a new key instead of erroring out.
* stats (#707)Conrad Ludgate2023-02-10
|
* make update_needed check lazy (#706)Ellie Huxtable2023-02-10
|
* 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...)
* feat(history): Add new flag to allow custom output format (#662)Baptiste2023-01-26
| | | | | | | | | | | * 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>
* chore(#621): Exit atuin when pressing down arrow on most recent entry (#659)Baptiste2023-01-10
| | | | | Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com> Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com>
* 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 :(
* Fix session history (#620)Patrick Jackson2022-12-16
|
* Add support for some additional keys in interactive mode (#634)Patrick Decat2022-12-03
| | | | | | | * Ignore tab key in interactive mode * Support home and end keys in interactive mode * Support delete key in interactive mode
* 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
* fix #596: Avoid drawing a command section beyond the width of the list (#597)Sam Lanning2022-11-06
| | | | | * fix #596: Avoid drawing a command section beyond the width of the list * chore: remove unneeded parentheses
* 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>
* Exit with return code 1 when no results are found in `atuin search` command ↵TymanWasTaken2022-11-02
| | | | | | | (#489) * Exit with return code 1 when no results are found in `atuin search` command * Remove random whitespace
* 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
* Upgrade clap (#568)Conrad Ludgate2022-10-18
|
* Add automatic update checking (#555)Ellie Huxtable2022-10-14
| | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Allow stateless commands to be run without config/database (#544)c-142022-09-25
| | | | | | | | | | | | | | * Allow stateless commands to be run without config/database Fixes an issue where gen-completions fails trying to create a config directory in restrained build environments/distribution. * move non-db commands up to core subcommands * re-add lost lines * re-add lost lines Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
* custom history list (#524)Conrad Ludgate2022-09-12
| | | | | | | | | | | | | | | * use custom list impl * fmt * segment * clean up * fix offsets * fix scroll back space * small touch ups
* update default layout (#523)Conrad Ludgate2022-09-12
| | | | | | | * update layouts * add other duration changes * fmt :(
* 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
* Batch key handling (#448)Frank Hamand2022-06-13
| | | | | | | | | | | | | | | | * 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
* [feature] Add scroll wheel support to interactive history search (#435)Frank Hamand2022-06-04
|
* Implement cursor (#412)b3nj5m1n2022-05-24
|
* Adds password prompt for register and login (#424)Satyarth Sampath2022-05-24
| | | | | | | | | | | * Adds the rpassword dependency * Provides only a prompt based input for login and register with a hidden prompt for password * Adds option based inputs for login and register commands * Password can also be provided as an option Co-authored-by: Satyarth <satyarth.sampath@gojek.com>
* Noyez zsh histdb import (#393)noyez2022-05-20
| | | | | | | | | | | | | | | | | | * Attempting to implement zsh-histdb import Import compiles passes tests, but doesn't run b/c of async runtime. zsh-histdb uses sqlite, and sqlx-rs is async, but import code is sync. * More working on importing histdb * Rewriting tests and using `Vec<u8>` instead of `String` - Rewriting tests to eliminate depencency on local file system - Using `Vec<u8>` for command strings instead of `String` to eliminate the utf8 errors i was seeing previously. Seems to be working. * Running fmt Co-authored-by: Bradley Noyes <b@noyes.dev>
* Importer V3 (#395)Conrad Ludgate2022-05-09
| | | | | | | | | * start of importer refactor * fish * resh * zsh
* Add ctrl-k and ctrl-j for up and down (#394)Luke Baker2022-05-08
|
* Adds stats summary (#384)Satyarth Sampath2022-05-03
| | | | | | | | | | | | | | | | * stat command parsing is handled without subcommands * Updates match clause based on PR review Co-authored-by: Conrad Ludgate <oon@conradludgate.com> * updates value returned by match based on PR review * adds vscode to gitignore * use an if statement instead of match Co-authored-by: Satyarth <satyarth.sampath@gojek.com> Co-authored-by: Conrad Ludgate <oon@conradludgate.com>
* Search: Allow specifiying the limited of returned entries (#364)Jakob-Niklas See2022-04-28
| | | | This patch adds a new option to the search command, allowing to limit the returned results from the database.
* ignore JetBrains IDEs, tidy-up imports (#348)Jakub Panek2022-04-28
| | | | | | | * ignore JB IDEs * tidy-up imports * add rustfmt config
* fix import auto for bash (#352)jean-santos2022-04-26
|
* history list (#340)Conrad Ludgate2022-04-25
|
* feature-flags (#328)Conrad Ludgate2022-04-22
| | | | | | | | | | | | | * use feature flags * fmt * fix features * update ci * fmt Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
* 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
* refactor (#327)Conrad Ludgate2022-04-22
|
* refactor commands for better separation (#313)Conrad Ludgate2022-04-21
* refactor commands for better separation * fmt