aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/import (unfollow)
Commit message (Collapse)Author
2024-04-18chore: move crates into crates/ dir (#1958)Ellie Huxtable
I'd like to tidy up the root a little, and it's nice to have all the rust crates in one place
2024-03-05fix(build): make atuin compile on non-win/mac/linux platforms (#1825)Rain
Hi! I've been trying to get atuin set up on the illumos machine I built for work @oxidecomputer, and I ran into a few issues which are fixed here: 1. The `clipboard` feature was only supported on Windows, Mac and Linux. I've added a platform gate for that. 2. The `atomic-write-file` crate needed an update to the version of `nix` -- that is included. 3. As part of this, I found a [security bug](https://rustsec.org/advisories/RUSTSEC-2024-0020.html) in the whoami crate. The bug has been fixed upstream and I've included it. whoami 1.5.0 deprecates the `hostname` function, which produced some fresh warnings. While fixing the warnings I also took the liberty of doing some code rearrangement, adding a few functions that wrap some common operations. I didn't really know where to put those functions, so I created a new `utils` module for it. If you have a better place to put them, I'm happy to change the PR. Feel free to make any changes to this PR if you like before landing it, or to ask for review. As a followup I'm also happy to set up a cross-compile build for atuin on illumos. It's a bit harder to run tests in CI for illumos at the moment, but I'm trying to get a project started up to make that happen in the future as well.
2024-02-21fix(import/zsh-histdb): missing or wrong fields (#1740)Aloxaf
* fix(import/zsh-histdb): import exit_status and session * fix(import/zsh-histdb): avoid session id conflict * fix(import/zsh-histdb): follow the format conventions of session and hostname * fix(import/zsh-histdb): duration unit is nanosecond
2024-02-15fix(xonsh): Add xonsh to auto import, respect $HISTFILE in xonsh import, and ↵jfmontanaro
fix issue with up-arrow keybinding in xonsh (#1711) * add xonsh to `atuin import auto` * respect $HISTFILE in xonsh importers * disable up-arrow binding in xonsh when completion menu is active * include xonsh logic in the same conditional as other shells * format and fix clippy lints
2024-02-12feat: Add xonsh history import (#1678)jfmontanaro
* add importers for xonsh JSON files and SQLite db * rustfmt xonsh importers * remove env-dependent tests from xonsh importers * pass xonsh_data_dir into path resolver instead of looking up in env * review: run format * review: fix clippy errors --------- Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2024-01-03fix(import/zsh): zsh use a special format to escape some characters (#1490)依云
* fix(import/zsh): zsh use a special format to escape some characters unescape those correctly rather than throw them away. zsh side code: https://github.com/zsh-users/zsh/blob/9f57ca4ac8ae071727b1d77cbb8c4c0d893b9099/Src/utils.c#L4889-L4900 * fix code style
2023-09-23refactor: Duplications reduced in order to align implementations of reading ↵Dieter Eickstaedt
history files (#1247)
2023-09-11replace chrono with time (#806)Conrad Ludgate
* replace chrono with time * Fix test chrono usage --------- Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2023-06-15Builder interface for History objects (#933)Vlad Stepanov
* [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>
2023-05-10Patch bash history import regression (#970)Ellie Huxtable
* 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.
2023-04-14Improve error message for issue #850. (#876)postmath
* Improve error message for issue #850. * Applied cargo fmt, doh.
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-08Use XDG data directory for fish import (#851)János Illés
* 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>
2023-04-05Handle empty lines when importing from Bash (#845)cyqsimon
* Handle empty lines * Fix insufficient accuracy in timestamp tests * Use nanoseconds
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-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-02Rework Bash import (#747)cyqsimon
* 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
2023-02-10crossterm support (#331)Conrad Ludgate
* crossterm v2 * patch crossterm * fix-version * no more tui dependency * lints
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...)
2022-10-19Never use HISTFILE for fish shell import (#573)Patrick Jackson
2022-10-10Fix ZSH import printEllie Huxtable
2022-06-05Noyez fix dir hostname utf8 (#430)noyez
* Allow zsh_histdb import diretories and hostnames as utf-8 * Allow zsh_histdb import diretories and hostnames as utf-8 Co-authored-by: Bradley Noyes <b@noyes.dev>
2022-05-20Noyez zsh histdb import (#393)noyez
* 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>
2022-05-09Importer V3 (#395)Conrad Ludgate
* start of importer refactor * fish * resh * zsh
2022-04-28ignore JetBrains IDEs, tidy-up imports (#348)Jakub Panek
* ignore JB IDEs * tidy-up imports * add rustfmt config
2022-04-22refactor (#327)Conrad Ludgate
2022-04-21A few minor tweaks (#314)Conrad Ludgate
* use bail macro replace client database errors remove dead code * fix test
2021-12-11Fish importing (#234)Conrad Ludgate
* make a start on fish * fix * test * enable fish * fmt * update histpath set up fish init script * update readme * cover edge case * fmt * fix session variables Co-authored-by: PJ <me@panekj.dev> * respect NOBIND Co-authored-by: PJ <me@panekj.dev> * fix env var setting Co-authored-by: PJ <me@panekj.dev> * fix whitespace Co-authored-by: PJ <me@panekj.dev> * add fish to supported shells Co-authored-by: PJ <me@panekj.dev>
2021-11-13chore: some new linting (#201)Conrad Ludgate
* chore: some new linting * chore: some more linting * chore: rustfmt
2021-09-09Reordered fuzzy search (#179)Mark Wotton
* add test demonstrating problem * add a reordered fuzzy-search mode that presents shorter matches first, rather than using strict chronological ordering. * fix warnings, refactor interface to minspan slightly
2021-05-09Fix resh importer crashing on end of file (#92)Jamie Quigley
2021-05-09Generic Importer Trait (#71)Conrad Ludgate
* initial importer trait * appease linters * improve file handling. fixes #66 * use size hint * format + comment * update serde rename mess * tested :sunglasses: :rocket: * small formatting
2021-05-09Fix resh importer, and change error handling method (#82)Jamie Quigley
2021-05-08Add importer for resh_history file (#69)Jamie Quigley
* Added resh history importer * Silence trivial clippy warnings for the PR CI
2021-04-26Support bash, resolves #3Ellie Huxtable