Commit Graph

1272 Commits

Author SHA1 Message Date
d7f351e074 fix: time offset display in atuin status (#2433) 2024-11-09 10:36:11 -08:00
cc6f57d4e4 chore(deps): flake.lock: Update (#2437)
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/d66cda53e8193a878742dcadb5bb75f4df7c3c0a?narHash=sha256-h0Wmvrkadbyi3IJXFLPi%2BQyYjCAKDr2xQ6dLxlQ8cXY%3D' (2024-10-22)
  → 'github:nix-community/fenix/3a35e2c06a31ff4420639a454eeca4ccdfe69f13?narHash=sha256-pMW/yx6urzUimYdMHLGKRWxu2wmWMd7Dqz9oiGHBi8o%3D' (2024-10-31)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/de2ff17bc513807412d7bbaba1d995a774938583?narHash=sha256-A/AuEWcGwwjpfBCZqWDNNg5GwYrJduzLvlMe%2BA7xG5U%3D' (2024-10-21)
  → 'github:rust-lang/rust-analyzer/8244f30eff828355f5ec92b2307c216d10caa25b?narHash=sha256-Kvve0NSLliNl1cv7qLSPdVWqLUEeAq0aZGsMeV632Cg%3D' (2024-10-30)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ca30f584e18024baf39c395001262ed936f27ebd?narHash=sha256-xb4/Y%2BY7ZlkQaA5rXnrXplDzdt2Jfgdmar3%2Bqkb56UA%3D' (2024-10-20)
  → 'github:NixOS/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53?narHash=sha256-B5WRZYsRlJgwVHIV6DvidFN7VX7Fg9uuwkRW9Ha8z%2Bw%3D' (2024-10-30)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-09 10:34:52 -08:00
2e332c247d chore: update to rust 1.82 (#2432) 2024-10-22 16:58:25 -07:00
62473c603c chore(deps): bump lukemathwalker/cargo-chef (#2427)
Bumps lukemathwalker/cargo-chef from latest-rust-1.81.0-slim-bookworm to latest-rust-1.82.0-slim-bookworm.

---
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>
2024-10-22 16:40:11 -07:00
5c29057e9a chore(deps): bump cachix/install-nix-action from V27 to 30 (#2411)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V27 to 30. This release includes the previously tagged commit.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/V27...v30)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 16:26:50 -07:00
15b2a2c433 chore(deps): bump clap_complete_nushell from 4.5.2 to 4.5.4 (#2420)
Bumps [clap_complete_nushell](https://github.com/clap-rs/clap) from 4.5.2 to 4.5.4.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete_nushell-v4.5.2...clap_complete_nushell-v4.5.4)

---
updated-dependencies:
- dependency-name: clap_complete_nushell
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 16:26:38 -07:00
4c2d8201dc feat: Ultracompact Mode (search-only) (#2357)
* feat: add always_show_tabs setting

* feat(ultracompact): extra-compact options

* feat(ultracompact): enable via auto_hide_height

* feat(ultracompact): clarify comment

* fix(theming): minor tidyup to theming comment

* chore: rustfmt/clippy corrections

* chore: testing if CI issue was transient
2024-10-07 08:54:07 -07:00
5651036d8f fix(deps): pin tiny_bip to 1.0.0 until breaking change resolved (#2412) 2024-10-07 08:45:34 -07:00
80e950c648 fix(daemon): Add context to error when unable to connect (#2394)
Recently, it seems, the socket location for the daemon moved and this
caused me to scratch my head briefly since I saw errors from the client
connecting to the daemon, but the daemon was clearly running and the
socket seemed to exist.

This patch includes more context when the client fails to connect to the
daemon. The path is included to help the user understand where the
client was looking, and `wrap_err_with()` is used to show the user the
cause of the error. This changes the error message from:

Error: failed to connect to local atuin daemon. Is it running?

to:

Error: failed to connect to local atuin daemon at /run/user/1001/atuin.sock. Is it running?

Caused by:
   0: transport error
   1: No such file or directory (os error 2)
   2: No such file or directory (os error 2)
2024-10-02 17:44:22 -07:00
a1a157cc97 fix(tui): don't panic when search result is empty and up is pressed (#2395)
In the event there are no results and up is pressed, saturating_sub()
should be used to avoid underflowing the usize. This was already present
on scroll_down().

fixes #2393
2024-10-02 17:43:19 -07:00
c7447e84da fix: disable mail by default, resolve #2404 (#2405) 2024-10-02 17:40:37 -07:00
28c7026aec chore(deps): bump tonic from 0.12.1 to 0.12.2 in the cargo group (#2403)
Bumps the cargo group with 1 update: [tonic](https://github.com/hyperium/tonic).


Updates `tonic` from 0.12.1 to 0.12.2
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.12.1...v0.12.2)

---
updated-dependencies:
- dependency-name: tonic
  dependency-type: direct:production
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 17:36:19 -07:00
d4a7fe5f70 chore(deps): bump debian (#2401)
Bumps debian from bookworm-20240904-slim to bookworm-20240926-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>
2024-10-02 17:36:04 -07:00
a8a17959af flake.lock: Update (#2402)
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/0df8ceddac0e11b695fd622e18908724cc478552?narHash=sha256-0BQ6BZPaDq8rtEIdTduF2OPlQUKEkImKI8oysym9EVM%3D' (2024-08-31)
  → 'github:nix-community/fenix/db7af3238117cb215b7096bd4cf1e9970e9a405b?narHash=sha256-jZr%2B8ZwMLlNab3qwfhsuAZyT9DfQ3d%2B18Sg9wXWXPIU%3D' (2024-09-30)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/9fd70519507b673fae250f84b0990e7e8155ca98?narHash=sha256-h8Pn1th2bss7yXvxs1uR1kXYMTNej1L6Qy/GgsR4t3A%3D' (2024-08-30)
  → 'github:rust-lang/rust-analyzer/822644d97d7f64e1bdff25b1d636e366a29facc4?narHash=sha256-iJTCG7vtECll27sxDElL4SuIY/kRhamJf0DDYCW6fb4%3D' (2024-09-29)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a?narHash=sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ%3D' (2024-03-11)
  → 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a?narHash=sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ%3D' (2024-09-17)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5629520edecb69630a3f4d17d3d33fc96c13f6fe?narHash=sha256-CHgumPZaC7z%2BWYx72WgaLt2XF0yUVzJS60rO4GZ7ytY%3D' (2024-08-31)
  → 'github:NixOS/nixpkgs/ef7226d68ba45b2de3e428e5d4bb4532caffec7b?narHash=sha256-RG%2B429Uv2W%2BX5vdZ8mAngtfC1ppzu28rCWw5R7JC3k0%3D' (2024-09-30)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-02 17:35:56 -07:00
6e15286f0c chore(deps): bump the cargo group with 2 updates (#2380)
Bumps the cargo group with 2 updates: [sqlx](https://github.com/launchbadge/sqlx) and [quinn-proto](https://github.com/quinn-rs/quinn).


Updates `sqlx` from 0.8.0 to 0.8.1
- [Changelog](https://github.com/launchbadge/sqlx/blob/main/CHANGELOG.md)
- [Commits](https://github.com/launchbadge/sqlx/compare/v0.8.0...v0.8.1)

Updates `quinn-proto` from 0.11.6 to 0.11.8
- [Release notes](https://github.com/quinn-rs/quinn/releases)
- [Commits](https://github.com/quinn-rs/quinn/compare/quinn-proto-0.11.6...quinn-proto-0.11.8)

---
updated-dependencies:
- dependency-name: sqlx
  dependency-type: direct:production
  dependency-group: cargo
- dependency-name: quinn-proto
  dependency-type: indirect
  dependency-group: cargo
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 20:42:30 +01:00
e7ec311311 flake.lock: Update (#2378)
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/296d44c440302980824c5f3b67e477cf0522e0c1?narHash=sha256-FaXZZLLDW1D%2Bpj7UgrIslDS8XjMMG3Pus5gAvUYWQS0%3D' (2024-08-13)
  → 'github:nix-community/fenix/0df8ceddac0e11b695fd622e18908724cc478552?narHash=sha256-0BQ6BZPaDq8rtEIdTduF2OPlQUKEkImKI8oysym9EVM%3D' (2024-08-31)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/32a86cb1dad2b208e8f36f1bb50c2e4806b0371f?narHash=sha256-Ls0e6R4FmGUFXZlUcm6ZQaVNJ4Yj/nua4SSctXIopao%3D' (2024-08-12)
  → 'github:rust-lang/rust-analyzer/9fd70519507b673fae250f84b0990e7e8155ca98?narHash=sha256-h8Pn1th2bss7yXvxs1uR1kXYMTNej1L6Qy/GgsR4t3A%3D' (2024-08-30)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4877ea239f4d02410c3516101faf35a81af0c30e?narHash=sha256-LrmeqqHdPgAJsVKIJja8jGgRG/CA2y6SGT2TjX5Do68%3D' (2024-08-13)
  → 'github:NixOS/nixpkgs/5629520edecb69630a3f4d17d3d33fc96c13f6fe?narHash=sha256-CHgumPZaC7z%2BWYx72WgaLt2XF0yUVzJS60rO4GZ7ytY%3D' (2024-08-31)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-09 20:42:07 +01:00
e87162becd chore(deps): bump lukemathwalker/cargo-chef (#2383)
Bumps lukemathwalker/cargo-chef from latest-rust-1.80.1-slim-bookworm to latest-rust-1.81.0-slim-bookworm.

---
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>
2024-09-09 20:41:01 +01:00
41e66abf61 chore(deps): bump debian (#2384)
Bumps debian from bookworm-20240812-slim to bookworm-20240904-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>
2024-09-09 20:40:54 +01:00
51650ff999 chore(deps): Update rustls and axum-server (#2382) 2024-09-09 20:40:19 +01:00
5ed36b79bf chore: enable inline height and compact by default (#2249) 2024-08-27 15:17:13 +01:00
00ef69f2a4 fix(docker): Update Dockerfile (#2369)
The runtime needs to use the same debian release as the build environment, otherwise this just crashes on startup
2024-08-27 15:14:25 +01:00
72a562a38e fix: remove dbg! macro (#2355) 2024-08-14 12:37:28 +01:00
d264840b38 chore: update rust to 1.80.1 (#2362)
fixes #2360

https://blog.rust-lang.org/2024/08/08/Rust-1.80.1.html

`1.80.1` fixes a fairly nasty miscompilation, but that's not my motivation for opening this PR.

If I'm understanding correctly, because the rust patch version was not specified in `rust-toolchain.toml`, nix automatically upgraded to the new version. This broke the hash in `flake.nix` causing the flake to fail to build. Making this upgrade to `1.80.1` explicit, fixes this issue.
2024-08-14 12:35:36 +01:00
ea991d5f45 chore(deps): update to debian bookworm, rust 1.80 (#2354) 2024-08-07 22:27:44 +01:00
b764ee327d chore: update to rust 1.80 (#2344) 2024-08-07 21:07:34 +01:00
58c904996d fix(mail): enable correct tls features for postmark client (#2347) 2024-08-06 15:00:34 +01:00
2811e5631b fix(mail): incorrect alias and error logs (#2346) 2024-08-06 14:31:41 +01:00
90e7d28173 test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite (#2337)
* test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite

This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from #1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which added by #1703 only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.

* test!: replace ATUIN_TEST_SQLITE_STORE_TIMEOUT with ATUIN_TEST_LOCAL_TIMEOUT

This deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT for simplicity as the new
env ATUIN_TEST_LOCAL_TIMEOUT can control both connection and store
timeout of SQLite in test. Details see 4d88611.

Revert: #1703.
2024-08-05 14:22:40 +01:00
f94a284df4 fix(theme): Restore original colours (#2339)
* fix(theme): restore ratatui colors

* chore: fix up rustfmt

* typo: correct spelling in comment
2024-08-05 14:12:18 +01:00
fe9832997a chore(deps): bump env_logger from 0.11.3 to 0.11.5 (#2341)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.11.3 to 0.11.5.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.3...v0.11.5)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 14:11:15 +01:00
ac6802e43c chore(deps): update to sqlx 0.8 (#2343) 2024-08-05 14:11:01 +01:00
2ce1a06f95 chore(deps): flake.lock (#2335)
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/2c06f54eb102f325f88472a9713f6d779726c2f7?narHash=sha256-TW68WegsA2KLjQMHTaP2//tLgXSaFiRdZKxKUc7vEtY%3D' (2024-06-30)
  → 'github:nix-community/fenix/0900ff903f376cc822ca637fef58c1ca4f44fab5?narHash=sha256-%2BxR0ZqooQvAjxcpoDBCqiUCKrBK8/RGVffRzlKH7urw%3D' (2024-07-31)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/9463d9eea4b87e651e7d8ed8425a9c92f23b1cdf?narHash=sha256-YzF4P6YVInAjcR5eJHWefkKEu5t70KYVZMvdLODv8CM%3D' (2024-06-28)
  → 'github:rust-lang/rust-analyzer/4feec4b0c1d5aad7aba34e0397fe7bd984c9a634?narHash=sha256-Myc%2BUnbLDQccueeO1q5CF0sNiGebQo1N%2BcdOpDMhNsg%3D' (2024-07-30)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1e3deb3d8a86a870d925760db1a5adecc64d329d?narHash=sha256-vN5xJAZ4UGREEglh3lfbbkIj%2BMPEYMuqewMn4atZFaQ%3D' (2024-06-27)
  → 'github:NixOS/nixpkgs/c3392ad349a5227f4a3464dce87bcc5046692fce?narHash=sha256-5US0/pgxbMksF92k1%2BeOa8arJTJiPvsdZj9Dl%2BvJkM4%3D' (2024-07-31)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-01 18:22:13 +01:00
6d1ef57c4d chore(deps): bump tonic-build from 0.12.0 to 0.12.1 (#2331)
Bumps [tonic-build](https://github.com/hyperium/tonic) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.12.0...v0.12.1)

---
updated-dependencies:
- dependency-name: tonic-build
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 17:10:46 +01:00
537426b888 chore(ci): codespell again (#2332) 2024-07-30 17:10:37 +01:00
538ccbc748 fix: codespell config still references the ui (#2330) 2024-07-30 16:55:21 +01:00
808138de63 chore: remove ui directory (#2329)
This is still in development, but rather than clutter the commit history
and issues with an unreleased project I've split the UI into its own
repo.

Once ready for release, I'll either merge the ui code back in, or just
make the repo public.
2024-07-30 16:54:10 +01:00
dee8ece263 chore(deps): bump debian (#2320)
Bumps debian from bullseye-20240701-slim to bullseye-20240722-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>
2024-07-30 16:47:24 +01:00
18a34772ee chore(deps): bump tonic from 0.12.0 to 0.12.1 (#2322)
Bumps [tonic](https://github.com/hyperium/tonic) from 0.12.0 to 0.12.1.
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.12.0...v0.12.1)

---
updated-dependencies:
- dependency-name: tonic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 16:47:10 +01:00
db2d6c3d83 fix: windows build error (#2321)
* fix: windows build

* refactor: cargo fmt

refactor: cargo fmt
2024-07-29 15:10:49 +01:00
8cb5983a53 fix: atuin-daemon optional dependency (#2306) 2024-07-29 11:55:56 +01:00
0b01d93083 fix(gui): random ts errors (#2316) 2024-07-26 19:08:49 +01:00
a34efd6c6b feat(gui): folder select dialogue for directory block (#2315) 2024-07-26 12:51:15 +01:00
c32bbcc7ed feat(gui): directory block, re-org of some code (#2314) 2024-07-25 23:31:38 +01:00
5ba185e7d8 feat(gui): allow interacting with the embedded terminal (#2312) 2024-07-25 16:54:27 +01:00
74d084305c fix(gui): cursor positioning on new doc creation (#2310) 2024-07-25 16:23:56 +01:00
c408465549 fix(gui): double return on mac/linux (#2311) 2024-07-25 16:08:53 +01:00
128891f53e fix(gui): do not hardcode db path (#2309)
* feat(gui/backend): add cli_settings tauri command

* chore(gui/backend): overdue cargo fmt

* fix(gui): use configured db path, not hardcoded
2024-07-25 13:40:04 +01:00
3cf52990e4 chore(release): prepare for release v18.4.0-beta.3 (#2305) v18.4.0-beta.3 2024-07-23 13:38:41 +01:00
f8c963c7d6 feat(gui): clean up home page, fix a few bugs (#2304)
* wip home screen changes

* more

* adjust

* fixes and things

* patch runbook pty check
2024-07-23 13:18:54 +01:00
17ed668aac fix(themes): Restore default theme, refactor (#2294)
* fix(theme): let the base colour remain unchanged

* fix(theme): split out default

* fix(theme): make base theme 'default' not an empty string

* wip(theme): return styles, not colors

* wip(theme): tidy up module structure a little

* wip(theme): removed unhandled references to foreground_color

* chore: fix cargo fmt

* feat(theme): allow crossterm-deserializable colors
2024-07-23 12:03:00 +01:00