Commit Graph

779 Commits

Author SHA1 Message Date
János Illés
04044c4146
Use XDG data directory for fish import (#851)
* 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-08 10:53:32 +01:00
Sandro
a72bf07453
Fix --delete description (#853) 2023-04-07 23:20:25 +01:00
WindSoilder
b85b603a99
update str substring usage to use range parameter (#840) 2023-04-05 08:42:14 +00:00
cyqsimon
188117dfae
Handle empty lines when importing from Bash (#845)
* Handle empty lines

* Fix insufficient accuracy in timestamp tests

* Use nanoseconds
2023-04-05 09:37:27 +01:00
cyqsimon
6671f72d1b
Updated client config docs (#839)
* 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
2023-04-05 09:32:26 +01:00
Ellie Huxtable
400544738b
Fix deleting history that doesn't exist yet (#844)
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.
2023-04-05 09:23:09 +01:00
Ellie Huxtable
f2a496848a Clarify in docs 2023-04-01 18:45:19 +01:00
Ellie Huxtable
4e4fdb9f8e
Release Atuin v14 (#836)
* Bump versions

* Write release notes

* add link
2023-04-01 18:17:38 +01:00
Ellie Huxtable
a515b06bcb
Vendor ratatui temporarily (#835)
* 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-31 22:57:37 +01:00
Patrick Jackson
3552c7e0d3
feat: add github action to test the nix builds (#833) 2023-03-31 08:59:46 +01:00
Patrick Jackson
662f2b84fd
fix: allow nix package to fetch dependencies from git (#832)
This change saves us from needing to keep a copy of the checksum in atuin.nix, so that Cargo.lock can remain as the sole source of truth for the dependency versions.
2023-03-31 08:58:57 +01:00
Ellie Huxtable
0d16a113c5
Add atuin status (#830)
Useful for debugging, checking the state of things, and for if you
forget your username!
2023-03-30 06:45:49 +01:00
Tom Cammann
ca5e58ad01
Update atuin search docs (#828)
Add docs for using `--limit` and `--offset` in `atuin search`
2023-03-29 20:41:28 +01:00
Tom Cammann
fa0a1447a6
Add --offset flag to atuin search (#825)
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-29 09:27:14 +01:00
Ch. (Chanwhi Choi)
f3a3f1c774
install.sh - add endeavouros to archlinux detection (#827) 2023-03-29 08:25:10 +00:00
Tom Cammann
0f139044b4
Add more fields to atuin search -f formatting (#824)
- Add `{exit}` which returns the exit code
- Add `{relativetime}` which gives a relative time, e.g. "5h"
2023-03-28 21:06:24 +00:00
Marijan Smetko
3514ff2401
Update CI action steps (#814) 2023-03-28 21:44:23 +01:00
Steven Xu
a41c2cc2d3
Refactor/nu remove dep on sh (#823)
* fix: join flags with ` `

* refactor: remove dependency on `sh`
2023-03-28 21:38:08 +01:00
Steven Xu
e9f9f9f994
fix: record negative exit codes (#821) 2023-03-28 21:34:40 +01:00
jean-santos
caf2ddfb9f
client filtering done in query (#629) 2023-03-27 22:33:04 +01:00
Ellie Huxtable
c64674dc23
Update CONTRIBUTING.md (#815) 2023-03-26 18:31:12 +01:00
YummyOreo
c4e68ccbcb
fixes (#813) 2023-03-26 18:06:19 +01:00
Ellie Huxtable
c30b457fc5
Account for user not yet having count cache (#812)
* Account for user not yet having count cache

* Make clippy happy
2023-03-26 17:48:41 +01:00
Ellie Huxtable
954e20fd86
Bind keys in vi mode too (#811) 2023-03-26 16:24:09 +01:00
Conrad Ludgate
bb7f00dbef
chore: use fork of skim (#803)
* use fuzzy-matcher instead of skim

switch to a search-engine abstraction

* fmt

* fix deprecated warnings
2023-03-26 15:47:38 +01:00
Ellie Huxtable
4325ec4624
Update README.md 2023-03-26 15:44:31 +01:00
Steven Xu
a7cb21a51b
feat: add *Nushell* support (#788)
* 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-26 15:44:06 +01:00
Marijan Smetko
b911d17800
Add musl build (#809)
Clean up

Trigger with everything but release

Remove trigger
2023-03-25 17:59:06 +00:00
Patrick Decat
13ce5f746c
feat: add an inline view mode (#648)
* add inline viewport

* Add inline_height setting. Zero disables inline mode (the default)
2023-03-25 17:27:20 +00:00
Patrick Decat
03f7e5543e
Respect exit_mode setting when exiting with arrow down keypress (#807) 2023-03-25 16:06:10 +00:00
dependabot[bot]
3b77e1130c
Bump lukemathwalker/cargo-chef (#781)
Bumps lukemathwalker/cargo-chef from latest-rust-1.67.1 to latest-rust-1.68.0.

---
updated-dependencies:
- dependency-name: lukemathwalker/cargo-chef
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-24 09:06:44 +00:00
Ellie Huxtable
79622cf698
Delete all instances of a command (#797)
* 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-24 09:04:57 +00:00
dependabot[bot]
d1169aee37
Bump debian from bullseye-20230227-slim to bullseye-20230320-slim (#802)
Bumps debian from bullseye-20230227-slim to bullseye-20230320-slim.

---
updated-dependencies:
- dependency-name: debian
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 20:37:00 +00:00
Conrad Ludgate
ba1d615f5e
chore: remove tui vendoring (#804) 2023-03-23 09:19:29 +00:00
Krut Patel
378be6b790
Allow changing search_mode during interactive search (#586)
* 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-22 16:16:59 +00:00
Ellie Huxtable
bc06d5f36f
Fix skim search (#795) 2023-03-21 20:00:19 +00:00
Ellie Huxtable
13514b635c
Support old msgpack (#794)
* 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>
2023-03-20 21:26:37 +00:00
Hamza Hamud
26a1b93098
fix: paste into terminal after switching modes (#793)
* fix: paste into terminal after switching modes

* fix: remove collect and fix format
2023-03-20 18:08:29 +00:00
Ellie Huxtable
dcd77749dd
Add history deletion (#791)
* 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-20 09:26:54 +00:00
Conrad Ludgate
edcd477153
skim-demo (#695)
* 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-19 20:49:57 +00:00
Nico Kokonas
529793fbcb
fix: many wins were broken 📝 (#789) 2023-03-19 10:51:05 +00:00
Patrick Decat
efd2230eba
Prefer PWD environment variable over cwd if available to better support symbolic links (#783) 2023-03-14 23:15:39 +00:00
YummyOreo
88deec31c8
Fixes a bug on windows (#780)
* Fixes the windows double input issue instead of the patchy way

* clippy allow
2023-03-14 11:47:24 +00:00
networkException
148730edf3
Add mailmap and update author information for github@nwex.de (#782) 2023-03-14 11:35:37 +00:00
Austin Schey
0f598032b6
fix(installer): use case-insensitive comparison (#776) 2023-03-13 22:43:21 +00:00
Conrad Ludgate
0dc918e8e5
add common prefixes and subcommands to stats (#773)
* add common prefixes and subcommands to stats

* fmt
2023-03-13 22:42:54 +00:00
Conrad Ludgate
1638cb57cb
fix new stats unique count (#772) 2023-03-09 09:47:22 +00:00
Ellie Huxtable
991461f423
Allow specifying fulltext as well as full-text (#771) 2023-03-09 09:13:31 +00:00
Ellie Huxtable
b91d4f4806
Fix before/after combined with limit (#770)
* 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-08 23:45:14 +00:00
onkelT2
afd1113b3b
Minor documentation updates (#767) 2023-03-08 20:20:39 +00:00