Commit Graph

114 Commits

Author SHA1 Message Date
dependabot[bot]
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
P T Weir
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
Ellie Huxtable
5651036d8f
fix(deps): pin tiny_bip to 1.0.0 until breaking change resolved (#2412) 2024-10-07 08:45:34 -07:00
Jeremy Cline
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
Jeremy Cline
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
Ellie Huxtable
c7447e84da
fix: disable mail by default, resolve #2404 (#2405) 2024-10-02 17:40:37 -07:00
Tobias Genannt
51650ff999
chore(deps): Update rustls and axum-server (#2382) 2024-09-09 20:40:19 +01:00
Ellie Huxtable
5ed36b79bf
chore: enable inline height and compact by default (#2249) 2024-08-27 15:17:13 +01:00
TymanWasTaken
72a562a38e
fix: remove dbg! macro (#2355) 2024-08-14 12:37:28 +01:00
Ellie Huxtable
b764ee327d
chore: update to rust 1.80 (#2344) 2024-08-07 21:07:34 +01:00
Ellie Huxtable
58c904996d
fix(mail): enable correct tls features for postmark client (#2347) 2024-08-06 15:00:34 +01:00
Ellie Huxtable
2811e5631b
fix(mail): incorrect alias and error logs (#2346) 2024-08-06 14:31:41 +01:00
Jax Young
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
P T Weir
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
dependabot[bot]
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
Ellie Huxtable
ac6802e43c
chore(deps): update to sqlx 0.8 (#2343) 2024-08-05 14:11:01 +01:00
YummyOreo
db2d6c3d83
fix: windows build error (#2321)
* fix: windows build

* refactor: cargo fmt

refactor: cargo fmt
2024-07-29 15:10:49 +01:00
Jakub Panek
8cb5983a53
fix: atuin-daemon optional dependency (#2306) 2024-07-29 11:55:56 +01:00
Ellie Huxtable
3cf52990e4
chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
P T Weir
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
Jeff Gould
62f3807dcb
fix(history): logic for store_failed=false (#2284)
* chore: ignore .envrc

* fix(history): Check passed exit param instead of not-yet set h.exit
2024-07-17 15:22:53 +01:00
Tobias Genannt
06c8ebd310
feat(tui): Fixed preview height option (#2286)
* Added "fixed" to preview strategy

Uses max_preview_height as a fixed value to prevent the list from
"jumping".

* Added test for new setting
2024-07-17 15:19:11 +01:00
Ellie Huxtable
0e7f9b29d2
chore(release): prepare for release v18.4.0-beta.2 (#2287)
* feat(gui): add runbook list, ability to create and delete, sql storage (#2282)

* wip

* saving works :))

* functioning delete button

* persist selection properly

* update contributors

* update changelog
2024-07-16 15:19:33 +01:00
dependabot[bot]
75fa887bfb
chore(deps): bump clap_complete from 4.5.7 to 4.5.8 (#2273)
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.5.7 to 4.5.8.
- [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-v4.5.7...clap_complete-v4.5.8)

---
updated-dependencies:
- dependency-name: clap_complete
  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-15 10:46:46 +01:00
dependabot[bot]
6592b87aad
chore(deps): bump tracing-tree from 0.3.1 to 0.4.0 (#2259)
Bumps [tracing-tree](https://github.com/davidbarsky/tracing-tree) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/davidbarsky/tracing-tree/releases)
- [Commits](https://github.com/davidbarsky/tracing-tree/commits/v0.4.0)

---
updated-dependencies:
- dependency-name: tracing-tree
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:20:40 +01:00
P T Weir
61c6e5e46a
feat(tui): Customizable Themes (#2236)
* wip: add theme

* feat(theme): basic theming approach

* feat(theme): adds theming support

* fix: split out palette without compact inspector

* fix(theme): tidy up implementation

* fix(theme): correct yaml to toml

* fix(theme): typo in comments

* chore: cheer up clippy

* fix(themes): ensure tests cannot hit real loading directory

* chore: rustfmt

* chore: rebase

* feat(themes): add rgb hexcode support

* fix(theme): add tests

* fix(theme): use builtin log levels and correct debug test

* feat(theme): adds the ability to derive from a non-base theme

* fix(theme): warn if the in-file name of a theme does not match the filename

* chore: tidy for rustfmt and clippy

* chore: tidy for rustfmt and clippy
2024-07-15 10:18:46 +01:00
Ellie Huxtable
8f5af526d3
chore: enable record sync by default (#2255)
I'm now pretty confident in the automatic migration. Let's cut people over so they have a better experience
2024-07-11 17:02:59 +01:00
Cristian Le
33925e3302
chore(deps): Replace cli-clipboard with arboard (#2067) 2024-07-10 16:20:30 +00:00
Ellie Huxtable
35bbaea0e4
chore(deps): update prost-types (#2251) 2024-07-10 16:52:48 +01:00
Ellie Huxtable
8d9f677c4e
feat(gui): use fancy new side nav (#2243)
* feat(gui): use fancy new side nav

* compact only sidebar, no expand-collapse

* custom drag region, remove titlebar

* add user popup

* wire up login/logout/register, move user button to bottom and add menu

* link help and feedback to forum
2024-07-10 15:56:33 +01:00
Ellie Huxtable
353981e794
chore(deps): update to tonic 0.12, prost 0.13 (#2250)
Resolve #2248
2024-07-10 15:46:51 +01:00
eth3lbert
e45979c9af
fix(tui): Press ctrl-a twice should jump to beginning of line (#2246) 2024-07-10 08:49:58 +01:00
Koichi Murase
f56a66add9
feat(bash/blesh): hook into BLE_ONLOAD to resolve loading order issue (#2234) 2024-07-05 14:32:47 +01:00
Ellie Huxtable
a67cfc82fe
fix: ambiguous column name (#2232) 2024-07-03 08:24:05 +01:00
Ellie Huxtable
5fe8ae05e5
fix: idx cache inconsistency (#2231) 2024-07-03 08:10:12 +01:00
Ellie Huxtable
c3723aaf27
feat: monitor idx cache consistency before switching (#2229) 2024-07-02 14:47:41 +01:00
Ellie Huxtable
255a7bccb6
feat: allow advertising a fake version to clients (#2228)
* feat: allow advertising a fake version to clients

The server usually runs unstable Atuin, and is well monitored. But let's
not advertised the unstable version to clients, as they will notify
users there is an update available.

* fix test build
2024-07-02 14:13:45 +01:00
Ellie Huxtable
884d97d55e
fix: add idx cache unique index (#2226) 2024-07-02 11:36:22 +01:00
Ellie Huxtable
0def653484
perf: write to the idx cache (#2225) 2024-07-02 11:14:37 +01:00
Ellie Huxtable
8b17690359
perf: create idx cache table (#2140)
* perf: add idx cache

* Update crates/atuin-server-postgres/migrations/20240614104159_idx-cache.sql

* indentation

* remove trigger - for each row is too much, should be once per transaction
2024-07-01 13:49:46 +01:00
dependabot[bot]
2f68b6e36b
chore(deps): bump postmark from 0.10.0 to 0.10.1 (#2217)
Bumps [postmark](https://github.com/pastjean/postmark-rs) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/pastjean/postmark-rs/releases)
- [Changelog](https://github.com/pastjean/postmark-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pastjean/postmark-rs/compare/v0.10.0...v0.10.1)

---
updated-dependencies:
- dependency-name: postmark
  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-01 12:57:13 +01:00
Julien P
1b0dad0b98
feat: Add npm, Netlify and Pulumi tokens to secret patterns (#2210) 2024-07-01 12:07:52 +01:00
Ellie Huxtable
1201caee5c
perf(search): benchmark smart sort (#2202) 2024-06-26 12:40:17 +01:00
Chris Rose
fd3aca7cb3
feat: add several other GitHub access token patterns (#2200)
- OAuth access tokens
- refresh token
- app installation token
- PAT v2

Additionally, added support for having >1 value for testing, for cases
where the pattern for a secret has alternative formats (GitHub PAT v2
does this)
2024-06-25 21:24:31 +01:00
David Jack Wange Olrik
a223fcb718
feat: Add GitLab PAT to secret patterns (#2196) 2024-06-25 14:32:45 +01:00
Ellie Huxtable
c8b3e418a1
chore(release): prepare for release v18.4.0-beta.1 (#2195)
* chore(release): prepare for release v18.4.0-beta.1

* remove full release test
2024-06-25 12:35:12 +01:00
Ellie Huxtable
05d1d9b136
chore(deps): update ratatui to 0.27 (#2193) 2024-06-25 09:43:42 +01:00
Ellie Huxtable
9e36f63c6e
fix: ensure we cleanup all tables when deleting (#2191) 2024-06-24 16:46:19 +01:00
Ellie Huxtable
67d64ec4b3
feat: add user account verification (#2190)
* add verified column to users table

* add database functions to check if verified, or to verify

* getting there

* verification check

* use base64 urlsafe no pad

* add verification client

* clippy

* correct docs

* fix integration tests
2024-06-24 14:54:54 +01:00
Matheus Martins
8956142cc5
fix: Some --help comments didn't show properly (#2176)
* FIX: Some --help comments didn't show properly (#3)

* FIX: Some --help comments didn't show properly

* FIX: Some --help comments didn't show properly

* FIX: Some --help comments didn't show properly

* FIX: Some --help comments didn't show properly

* Update crates/atuin/src/command/client.rs

grammatical sentence

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

* Update crates/atuin/src/command/client.rs

---------

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2024-06-24 07:23:29 +00:00