aboutsummaryrefslogtreecommitdiffstats
path: root/src (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-11Switch to uuidv7 (#864)Ellie Huxtable
* 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
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-10Atuin stats with day, month, week and year filter (#858)Gokul
* atuin stats with day, month and year * fixed stats for week * review suggestions * rust formatted
2023-04-09Add some emacs movement keys (#857)Jan Larres
2023-04-07Fix --delete description (#853)Sandro
2023-04-05update `str substring` usage to use range parameter (#840)WindSoilder
2023-03-31Vendor ratatui temporarily (#835)Ellie Huxtable
* Vendor ratatui temporarily Once https://github.com/tui-rs-revival/ratatui/pull/114 has been merged, we can undo this! But otherwise we can't publish to crates.io with a git dependency. * make tests pass * Shush. * these literally just fail in nix, nowhere else idk how to work with nix properly, and they're also not our tests
2023-03-30Add `atuin status` (#830)Ellie Huxtable
Useful for debugging, checking the state of things, and for if you forget your username!
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-28Refactor/nu remove dep on sh (#823)Steven Xu
* fix: join flags with ` ` * refactor: remove dependency on `sh`
2023-03-28fix: record negative exit codes (#821)Steven Xu
2023-03-27client filtering done in query (#629)jean-santos
2023-03-26fixes (#813)YummyOreo
2023-03-26Bind keys in vi mode too (#811)Ellie Huxtable
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-26feat: add *Nushell* support (#788)Steven Xu
* 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
2023-03-25feat: add an inline view mode (#648)Patrick Decat
* add inline viewport * Add inline_height setting. Zero disables inline mode (the default)
2023-03-25Respect exit_mode setting when exiting with arrow down keypress (#807)Patrick Decat
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-23chore: remove tui vendoring (#804)Conrad Ludgate
2023-03-22Allow changing search_mode during interactive search (#586)Krut Patel
* 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
2023-03-20fix: paste into terminal after switching modes (#793)Hamza Hamud
* fix: paste into terminal after switching modes * fix: remove collect and fix format
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-14Fixes a bug on windows (#780)YummyOreo
* Fixes the windows double input issue instead of the patchy way * clippy allow
2023-03-13add common prefixes and subcommands to stats (#773)Conrad Ludgate
* add common prefixes and subcommands to stats * fmt
2023-03-09fix new stats unique count (#772)Conrad Ludgate
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-06fix(client): always read session_path from settings (#757)Luke Karrys
* 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
2023-03-05Windows support (#754)YummyOreo
* adds support for getting home dir in windows * fixes bug * adds windows server support + build for linux ^| todo: test server on linux * improvements to redability * removes comment * returns if windows when importing auto * this should be here, to prevent double inputs * adds explanation to why we have to throw away 1 event in the tui * better message when running atuin import on windows + spell fix
2023-03-05feat: add common default keybindings (#719)Steven Xu
* 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
2023-03-05Up arrow filter_mode setting default to global filter mode (#758)Ellie Huxtable
Resolves #756
2023-03-05Show preview of selected command (#643)Patrick Decat
* 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>
2023-02-27Disable 2 tests that shouldn't run in release mode (#736)cyqsimon
These tests expect `debug_assert!` to panic: - `pos_of_panics_on_out_of_bounds` - `index_of_panics_on_out_of_bounds`
2023-02-26Release v13 (#727)Ellie Huxtable
* Write release blog post * Bump versions * Update contributors
2023-02-24Revert "Remove shortcut numbers (#708)" (#724)Ellie Huxtable
This reverts commit 3fdd4f4591bc573906480c1c700df91ba866a2cb.
2023-02-15Remove shortcut numbers (#708)Ellie Huxtable
* 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
2023-02-14fish: Fix `atuin init` for the fish shell (#699)Tobias Hunger
2023-02-14Check before unwrapping in stats (#717)Ellie Huxtable
Should fix the error @pdecat found!
2023-02-14Add `history_filter` cfg to exclude commands from history (#515) (#716)Johannes Baiter
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.
2023-02-10Allow using existing key file on login (#688)Trygve Aaberge
* 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.
2023-02-10stats (#707)Conrad Ludgate
2023-02-10make update_needed check lazy (#706)Ellie Huxtable
2023-02-10crossterm support (#331)Conrad Ludgate
* crossterm v2 * patch crossterm * fix-version * no more tui dependency * lints
2023-02-06display mnemonic key (#694)Conrad Ludgate
2023-02-06Try to make clippy happy 🥺 (#686)Ellie Huxtable
* Try to make clippy happy 🥺 * Fmt * I missed one (can't run clippy locally on airport wifi...)
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>