Commit Graph

455 Commits

Author SHA1 Message Date
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
Ellie Huxtable
00f7312254
Docker isn't interactive ofc (#766) 2023-03-07 23:20:15 +00:00
Ellie Huxtable
0f64cdce48
Install CA certificates in docker image (#765) 2023-03-07 23:14:01 +00:00
Ellie Huxtable
b978f9a4de
Add register notification webhook (#764)
I find it super motivating when people use my stuff, so this makes it
_even easier_ to know when someone new signs up!
2023-03-07 22:09:19 +00:00
Luke Karrys
ca5bbea0d4
fix(client): always read session_path from settings (#757)
* 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-06 22:46:03 +00:00
YummyOreo
e9c5e1d85c
Windows support (#754)
* 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-05 19:00:59 +00:00
dependabot[bot]
df16a03cb6
Bump debian from bullseye-20230208-slim to bullseye-20230227-slim (#744)
Bumps debian from bullseye-20230208-slim to bullseye-20230227-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-05 18:53:12 +00:00
Steven Xu
2e79e73af3
feat: add common default keybindings (#719)
* 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-05 18:49:09 +00:00
Ellie Huxtable
3eb50a8383
Up arrow filter_mode setting default to global filter mode (#758)
Resolves #756
2023-03-05 18:43:03 +00:00
Patrick Decat
24388033a5
Show preview of selected command (#643)
* 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-03-05 18:36:35 +00:00
Krithic Kumar
9e05d747ea
docs(README): fix activity graph link (#753) 2023-03-02 22:52:37 +00:00
cyqsimon
63c572104b
Rework Bash import (#747)
* 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-03-02 10:05:19 +00:00
cyqsimon
a033890506
Fix race condition in directory tests (#748) 2023-03-02 09:39:15 +00:00
0x4A6F
e6ff051430
nix: add flake-compat (#743) 2023-03-01 19:51:31 +00:00
Patrick Jackson
55d8b36b67
Update flake.lock to Rust 1.67 (#749) 2023-03-01 18:23:11 +00:00
Ellie Huxtable
d46e3ad47d Add hachyderm to home 2023-02-28 22:37:42 +00:00
Ellie Huxtable
3e90031c0e Add verification 2023-02-28 22:29:34 +00:00
Ellie Huxtable
b40383fc90
Add Hachyderm links (#742) 2023-02-28 22:27:06 +00:00
Ellie Huxtable
e4fde80acc
Patch release v13.0.1 (#741)
* Patch release v13.0.1

* Update blog post
2023-02-28 21:44:39 +00:00
Conrad Ludgate
fe67dbb96c
fix registration (#740) 2023-02-28 15:46:24 +00:00
cyqsimon
b80f91c6a2
Disable 2 tests that shouldn't run in release mode (#736)
These tests expect `debug_assert!` to panic:
- `pos_of_panics_on_out_of_bounds`
- `index_of_panics_on_out_of_bounds`
2023-02-27 16:31:27 +00:00
Maurice Escher
f3bc646f24
[docs] fix some links between config and commands (#733) 2023-02-27 08:12:00 +00:00
Alpha Chen
df9b3b0541
Fix link to self-hosting (#731) 2023-02-27 07:12:26 +00:00
Alpha Chen
ff4606b63a
Fix editURL for docs (#732) 2023-02-27 07:10:52 +00:00
Ellie Huxtable
79a2053340
Revert "Re-enable arm docker builds (#616)" (#730)
Docker builds are failing on ARM, let's see if they work on AMD.

Might be worth waiting until we have less C that needs building

This reverts commit f3894ef9c0.
2023-02-26 23:01:40 +00:00