Commit Graph
2702 Commits
Author SHA1 Message Date
Clement Tsang eb8735eeb0 docs: update changelog to add #1843 (#2332) 2026-11-21 23:13:02 -05:00
Rashil GandhiandClement Tsang 0ccee6233b feature: use light variant of theme automatically when terminal background is light (#1843)
This PR makes it so that a user can specify an automatic theme mode, to automatically switch between light and dark terminals based on what's detected. The user can then specify the light and dark themes (--theme-dark and --theme-light as args, and similarly via config).

This approach isn't super original, and it's based on the approach used by bat (though not 100% the same).

Note that this is done only at startup and not constantly checking.

Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2026-11-21 23:12:43 -05:00
allcontributors[bot] 80a0325386 docs: add rashil2000 as a contributor for code (#2331)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-11-22 04:06:47 +00:00
Clement Tsang d9a0f1d1d8 feature: add basic GPU usage graph (#2329)
Adds a basic GPU usage graph.
2026-11-21 10:29:56 +00:00
Clement Tsang 829779a0d2 feature: add natural sorting option (#2328)
Adds a natural sorting option that can be set per-widget.
nightly-829779a0-1795134901
2026-11-19 10:58:35 +00:00
Clement Tsang 18a5486c8d docs: update changelog to add #2326 (#2327)
Forgot to add this 🤦
2026-11-19 00:17:59 +00:00
Clement Tsang a1742a3548 feature: add basic integration with sysinfo's gpu api for non-Linux (#2326)
This is a very simple integration for non-Linux to use sysinfo's new GPU API.
2026-11-18 19:13:43 -05:00
Clement Tsang 6e1c1385d8 feature: add hostname template to terminal title option (#2325)
Allows you to specify `{hostname}` in your terminal title option, which will be substituted for the actual hostname of your system. This PR also renames `app_name` to `terminal_title` since that's a bit more accurate.
2026-11-17 02:17:40 -05:00
Clement Tsang cb86dc0316 ci: fix MSI installer workflow failing when installing dotnet (#2324)
For some reason on specifically the x86 msvc (but not gnu or arm) runners, the `choco install` step for dotnet would fail. But it looks like dotnet is already included in runners so I can just skip it entirely. So... yeah the PR removes that line.
2026-11-16 03:28:13 -05:00
Clement Tsang 08fcb192da feature: allow setting a custom terminal name (#2323)
Quick PR to allow setting a custom terminal name via config/arg.
2026-11-15 11:15:47 +00:00
Clement Tsang a5da65c637 other: set unused_dependencies lint to deny (#2322) 2026-11-14 12:06:26 -05:00
Clement Tsang 3f05ccf422 other: add crate publish cooldown (#2321) 2026-11-14 07:09:57 +00:00
Clement Tsang 99d586a14e ci: fix Android build by tying gpu feature to sysinfo's, bump cross version to a9301e9 (#2316)
Make it so our own gpu feature flag controls the sysinfo one, since that's causing the Android build to fail.

Also bumps cross to cross-rs/cross@a9301e9.
2026-11-13 02:51:03 -05:00
Clement Tsang 883941593d ci: bump rust version in CI to 1.100.0 (#2315)
Updates the CI rust version used to 1.100.0.
2026-11-13 00:36:56 +00:00
Clement Tsang c47f02d598 deps: bump sysinfo to 0.40.3 (#2314) 2026-11-12 19:18:04 -05:00
ClementTsang b539dafd59 Revert "deps: bump sysinfo to 0.40.3 (#2314)"
This reverts commit 3843f17467.
2026-11-12 18:55:24 -05:00
Clement Tsang 3843f17467 deps: bump sysinfo to 0.40.3 (#2314)
Bumps sysinfo to use the newest (breaking) version, 0.40.3. See https://github.com/GuillaumeGomez/sysinfo/blob/main/CHANGELOG.md#0403.

Note I'm not touching the new GPU API here for now. I'm not sure what I'll do on the Linux side as well since I have some fairly tailor-made integrations already, though for other platforms I'll take a look for sure.
2026-11-12 06:45:05 +00:00
Clement Tsang 0314c648c9 other: add cargo binstall metadata (#2313)
Adds binstall metadata, following https://github.com/cargo-bins/cargo-binstall/blob/main/SUPPORT.md#support-for-cargo-binstall.
2026-11-12 00:51:09 +00:00
Clement Tsang e0f4d211d4 deps: bump rustix to 1.1.6 (#2312)
This should hopefully address an unsoundness warning from cargo-audit:

```
Crate:     rustix
Version:   1.1.4
Warning:   unsound
Title:     xattr functions mark unwritten bytes as initialized when given a zero-length buffer
Date:      2026-10-27
ID:        RUSTSEC-2026-0486
URL:       https://rustsec.org/advisories/RUSTSEC-2026-0486
```
2026-11-11 09:22:55 +00:00
Clement Tsang 2966527b5c docs: update changelog with process command viewer (#2310)
Update the changelog to include #2263.
2026-11-11 03:55:36 -05:00
allcontributors[bot] 43334eb3f4 docs: add vegerot as a contributor for code (#2311)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-11-11 03:55:16 -05:00
Max Coplan 7873001024 feature: add wrapped process command viewer (#2263)
Currently, long command names are cut off with no way to view the full command. This commit allows pressing `w` to show the full command.
2026-11-11 03:51:33 -05:00
Clement Tsang 0410a176e8 other: run nightly format (#2307)
Runs nightly format as of 2026-11-09.
2026-11-09 02:53:38 -05:00
Clement Tsang 6a30648e5d ci: bump macos version in coverage job to 15 (#2308)
I somehow forgot to update this, so jobs were failing now that the macos 14 runner is retired
(https://github.blog/changelog/2026-10-01-github-actions-macos-14-runner-image-retirement/).
2026-11-09 02:30:07 -05:00
Clement Tsang 9e6df79fce ci: add zizmor check action (#2306)
This makes it so that if the `.github/workflows` directory is modified, we'll run `zizmor` to check things.

This also fixes some zizmor warnings:

- https://docs.zizmor.sh/audits/#self-repository
- For now, mutes the secret inherits one; this will be fixed later.
2026-11-09 01:55:59 -05:00
Clement Tsang cc6facab16 packaging: allow wix (msi) to do same-version upgrades (#2304)
Make it so the wix config (MSI installer) allows same-version upgrades.

Pulled from #2302, kudos to @meop for the recommendation.
2026-11-04 11:12:38 +08:00
allcontributors[bot]andClement Tsang f3ae0b05b4 docs: add meop as a contributor for code (#2303)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2026-11-04 02:43:43 +00:00
Marshall Porter 373d4fc555 other: fix the windows gnullvm aarch64 build (#2302) 2026-11-03 21:26:33 -05:00
allcontributors[bot] f637446f87 docs: add djbclark as a contributor for code (#2301)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-11-02 21:57:23 -05:00
Daniel JB Clark fd8cc7d6ca bug: fix hidden columns shifting widths and header clicks (#2298) 2026-11-02 21:32:52 -05:00
Clement Tsang 540bb71a35 bug: fix dialogs not blocking certain events (#2300)
Some events weren't blocked when dialog boxes were open, which would mean they would still do stuff behind the dialog (e.g. process actions). This change just blocks it from doing that if the dialog box is open.
2026-11-02 16:58:10 +00:00
Clement Tsang ae884b110b other: add mimalloc allocator for possible use for musl (#2299)
This adds the mimalloc allocator as an optional musl feature; note that this is still disabled by default.
2026-11-02 16:14:04 +00:00
Clement Tsang 3d5ff66726 change: better truncate CPU usage strings with small widths (#2296)
Slightly complicated but basically, add some overriding behaviour based on the available width on what string to emit. The main idea is that if we can't fit the percentage sign, we'll first omit that. If it's in decimal mode and we can't fit the decimals too, we then omit the decimals. Finally, if we can't fit the whole number portion, return `None` to hide the column entirely.
2026-11-02 04:08:34 +00:00
Clement Tsang 114bbdef13 docs: update changelog date (#2295) 2026-11-02 09:28:57 +08:00
Clement Tsang 4b6a033f43 ci: bump rust CI version to 1.99.1 (#2294) 0.15.0 2026-10-31 18:40:50 +00:00
Clement Tsang 1772396845 fix: disable crossterm ratatui underline feature for older Windows compatibility (#2293)
Older Windows versions (8.1 and older) were failing to render properly due to winapi not supporting underlining.

Looks like we were transitively enabling this feature because of the crossterm feature, which pulls in ratatui_crossterm which enables it by default. As a quick fix, we manually pull in ratatui_crossterm ourselves and disable that feature.
2026-10-31 01:16:51 +08:00
Clement Tsang c9c96753b1 docs: update contribution docs (#2292)
Explicitly mention to please open an issue before making a PR.
2026-10-30 11:40:04 -04:00
Clement Tsang 7f588a3c57 uptick: bump release version to 0.15.0 (#2286) 2026-10-30 13:52:32 +08:00
Clement Tsang dbf91d4bfc docs: update changelog (#2291) 2026-10-29 14:05:02 -04:00
Clement Tsang 97e352bf30 ci: add windows gnullvm aarch64 build targets (#2290)
Adds Windows gnnllvm aarch64 build targets in CI. This applies to the MSI wix build and the normal binary. This also fixes that we weren't specifying the wix build target technically (wasn't a problem though since it was previously just using the default).
2026-10-29 14:03:09 -04:00
Clement Tsang fdc61cafd6 bug: make it so bracketed paste not working does not panic (#2284)
This change makes it so that if bracketed paste is not supported (e.g. Windows 7/8), we proceed and don't outright panic. This also has some small cosmetic changes around execute! and cleanup.
2026-10-28 08:04:10 +08:00
allcontributors[bot] 04cf1e5c58 docs: add NavpreetSSidhu as a contributor for code (#2285)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-10-27 14:06:30 -04:00
NavpreetSSidhu b48e807055 bug: don't abort in panic hook if the terminal is gone (#2279) 2026-10-27 14:05:48 -04:00
Clement Tsang 1aaa907a47 ci: update netbsd cross pre-build install (#2283)
Cause was due to the netbsd paths changing, apparently.
2026-10-27 13:38:21 -04:00
Clement Tsang dd74c5f365 ci: update netbsd-vm version to 1.5.2 (#2282)
Update netbsd-vm version so it hopefully doesn't break as much on CI runs.
2026-10-27 16:25:08 +00:00
Clement Tsang 7d65d62c83 ci: use Rust 1.99 (#2275) 2026-10-03 18:48:43 +09:00
Clement Tsang cea7547676 docs: update contribution doc (#2274) 2026-10-01 00:56:58 -04:00
Clement Tsang 03dd52bfe5 deps: bump starship-battery to 0.12.0 (#2272)
Bumps starship-battery to the newest 0.12.0 version. A small amount of code change was needed due to the new Paused state.

Changelog: https://github.com/starship/rust-battery/blob/main/CHANGELOG.md#0120---2026-09-27
2026-09-30 05:31:39 -04:00
Clement Tsang 048deff943 other: allow clippy lint for regex creation in loops (#2270)
https://github.com/rust-lang/rust-clippy/pull/17681 got merged a while ago - this makes it so the `regex_creation_in_loops` clippy `expect` "fails", since it is actually now not triggered.

Unfortunately, this is only in beta from the looks of it at the moment, so I can't just remove it entirely. This change just makes it an unconditional `allow` with a note to get rid of it at some point once it's stable.

Note this only affects macOS, where we use this. This was fine because it's only actually triggered once, and then cached via a `OnceLock`.
2026-09-29 05:13:21 +00:00
Clement Tsang 520bc0cd66 other: update PR and issue templates (#2268)
Making it so that new features have to go through a feature request first. I'm somewhat not a fan of getting random feature PRs out of the blue - I feel bad saying no too. I would rather be upfront and say that look, if you want a feature, make a feature request and discuss it first before you waste time/tokens/whatever on it.
2026-09-29 04:25:31 +00:00