Commit Graph

3609 Commits

Author SHA1 Message Date
renovate[bot] f37b81961f build(deps): update rust crate open to 5.3.2 (#6474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-05 19:37:11 +00:00
renovate[bot] 8a435693a4 build(deps): update rust crate os_info to 3.9.2 2025-01-05 14:06:23 +00:00
renovate[bot] d204259211 build(deps): update crate-ci/typos action to v1.29.4 2025-01-03 17:26:39 +00:00
renovate[bot] 7faee3680c build(deps): update rust crate tempfile to 3.15.0 2025-01-03 00:09:15 +00:00
renovate[bot] 3cdb2af2a3 build(deps): update crate-ci/typos action to v1.29.3 2025-01-02 21:23:34 +00:00
renovate[bot] a299f4c7a2 build(deps): update crate-ci/typos action to v1.29.1 2025-01-02 15:59:25 +00:00
renovate[bot] 0521e82dc5 build(deps): update crate-ci/typos action to v1.29.0 2024-12-31 17:14:47 +00:00
renovate[bot] 611b463e63 build(deps): lock file maintenance 2024-12-30 00:33:43 +00:00
renovate[bot] fb010f1f3c build(deps): update rust crate quick-xml to 0.37.2 2024-12-29 19:48:03 +00:00
MK 2df521c69b feat(bun): Detect bun using new text-format lockfile (#6441)
* Support bun text-format lockfile

Bun version 1.1.39 introduced a new plaintext lockfile. Currently it is opt-in only, but it will become the default in bun version 1.2.

* update docs

* update config schema

* update tests
2024-12-29 18:20:01 +01:00
renovate[bot] 2922ee78d2 build(deps): update rust crate serde to 1.0.217 2024-12-27 21:28:31 +00:00
Ky 2690a329cf feat(battery): Use best match instead of first match for battery.display threshold (#6442)
Previously the selection code simply filtered for the first style found
within the config with a threshold larger than the current battery
percentage. If the config defined multiple display thresholds that were
above the battery percentage it would only select the first one that was
encountered rather than the one that was closest to the current battery
percentage.

This commit also adds a test to ensure this property is held true. The
test accomplishes this by comparing the parsing of a config with two
`battery.display` entries, one with a threshold at 100% & the other at
60%, with a mock battery set at 50% charge. This config is parsed with
the 100% threshold defined above the 60% threshold, and then again with
the 60% threshold defined above the 100% threshold. To ensure the
entries are parsed parsed correctly each entry is given a different
style, so the expected value that is compared against has the same style
as the 60% threshold entry for both test cases.


* Update src/modules/battery.rs

Use more concise chain of functions from Iterator

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-12-27 11:32:13 +01:00
T0mstone e21775c694 feat(status): add {success,failure}_style options (#6269) 2024-12-27 11:30:28 +01:00
Nick Conway 45937166c8 feat(direnv): allow direnv to detect environment variables (#6196) 2024-12-27 11:25:15 +01:00
Rich Lafferty 7ead2b55eb fix: handle variable bash $SHLVL behavior with explicit option (#4912)
* Accept shlvl as --shlvl option

* For bash only, pass --shlvl explicitly

* fmt

* Apply suggestion

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Apply suggestion

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* parse_jobs -> parse_i64

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-12-27 11:14:10 +01:00
Gilbert Sanchez 9b6d394e01 fix(init/pwsh): preserve ViModeChangeHandler (#6225)
* Combine ViModeChangeHandler

If a user has defined a ViModeChangeHandler setting this would respect that as well as redraw the prompt (to allow rendering things like the character change).

* Add newline

* Use call operator to limit new closure scope

* Pass any args to original handler
2024-12-27 11:11:45 +01:00
renovate[bot] 1f4b664cff build(deps): lock file maintenance 2024-12-23 01:32:39 +00:00
renovate[bot] ba16bdab88 build(deps): update rust crate gix to 0.69.1 (#6446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-22 21:34:45 +00:00
renovate[bot] 0d2edee51f build(deps): update rust crate os_info to 3.9.1 2024-12-22 19:13:17 +00:00
renovate[bot] d4ba0d19e6 build(deps): update rust crate serde_json to 1.0.134 2024-12-21 19:57:20 +00:00
renovate[bot] c7b0b68618 build(deps): update rust crate home to 0.5.11 (#6437)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 20:37:10 +00:00
renovate[bot] 0993b4d70d build(deps): update rust crate which to 7.0.1 2024-12-19 21:48:29 +00:00
renovate[bot] 9d2201066a build(deps): update rust crate clap_complete to 4.5.40 2024-12-17 18:40:46 +00:00
renovate[bot] e1a173fe42 build(deps): update crate-ci/typos action to v1.28.4 (#6438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 01:32:27 +00:00
renovate[bot] 00d3b00d60 build(deps): update rust crate clap_complete to 4.5.39 2024-12-16 19:09:49 +00:00
renovate[bot] 2acb479016 build(deps): lock file maintenance 2024-12-16 00:18:46 +00:00
renovate[bot] 44941823da build(deps): update rust crate systemstat to v0.2.4 2024-12-14 18:34:02 +00:00
renovate[bot] dbcabdc160 build(deps): update rust crate shadow-rs to 0.36.1 2024-12-13 17:05:02 +00:00
renovate[bot] d510240c18 build(deps): update rust crate semver to 1.0.24 (#6434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 00:21:03 +00:00
renovate[bot] ca873bc3d1 build(deps): update crate-ci/typos action to v1.28.3 2024-12-12 23:02:24 +00:00
renovate[bot] 0a6b44ca9f build(deps): update rust crate serde to 1.0.216 2024-12-11 04:46:27 +00:00
renovate[bot] 9e06bb73f7 build(deps): update rust crate chrono to 0.4.39 2024-12-09 10:59:21 +00:00
renovate[bot] 49a6a45d1c build(deps): lock file maintenance 2024-12-09 02:00:18 +00:00
Qiming Xu c15c75f7a5 docs(preset): add buf symbol to plain text symbols preset (#6427) 2024-12-07 18:10:13 +01:00
renovate[bot] e6f4a7d30e build(deps): update pest crates to 2.7.15 2024-12-07 05:24:18 +00:00
renovate[bot] 5e7b4ad408 build(deps): update rust crate clap to 4.5.23 2024-12-06 00:46:22 +00:00
renovate[bot] de227a4458 build(deps): update embarkstudios/cargo-deny-action action to v2.0.4 (#6424)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-04 04:12:49 +00:00
renovate[bot] b23437c6c4 build(deps): update rust crate clap to 4.5.22 2024-12-03 22:41:25 +00:00
renovate[bot] a4e013cc76 build(deps): update crate-ci/typos action to v1.28.2 2024-12-02 18:06:33 +00:00
renovate[bot] 333706caf4 build(deps): lock file maintenance (#6423)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 05:02:48 +00:00
renovate[bot] c24c1f534c build(deps): update dependency dprint/dprint-plugin-typescript to v0.93.3 2024-12-02 00:31:53 +00:00
renovate[bot] 777a050759 build(deps): update rust crate terminal_size to 0.4.1 (#6420)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-01 22:20:48 +00:00
renovate[bot] 4f09f17cfb build(deps): update rust crate indexmap to 2.7.0 2024-12-01 03:56:38 +00:00
renovate[bot] 1fca32fa97 build(deps): update rust crate os_info to 3.9.0 2024-11-30 15:52:53 +00:00
renovate[bot] 61c860e129 build(deps): update embarkstudios/cargo-deny-action action to v2.0.3 2024-11-28 15:15:47 +00:00
renovate[bot] ba8245904f build(deps): update crate-ci/typos action to v1.28.1 2024-11-26 19:33:15 +00:00
renovate[bot] ddfea65bbb build(deps): update crate-ci/typos action to v1.28.0 2024-11-25 22:15:13 +00:00
renovate[bot] 5577e4136c build(deps): lock file maintenance 2024-11-25 01:53:00 +00:00
Poliorcetics 8a38b8f6f1 fix(status): add trailing space to pipestatus_format (#6404) 2024-11-24 19:13:35 +01:00
renovate[bot] 22219727be build(deps): update gitoxide crates 2024-11-24 10:19:16 +00:00