Commit Graph

1027 Commits

Author SHA1 Message Date
gitgoggles 6c81caffd2 feat: enter key can be used to close process search widget (#1890)
Added the ability to press Enter after typing a search term in the Proc widget, making it more Vim-like for those with muscle-memory for Vim's '/' search.
2025-11-30 19:04:56 -05:00
rezky_nightky f277dff2b2 fix: correct spelling across docs, comments, and configs (#1891) 2025-11-30 16:42:06 -05:00
Clement Tsang a8f65a8065 other: add very basic test for data collection (#1883) 2025-11-22 23:57:06 -05:00
Clement Tsang 86b35bcd79 refactor: use clippy::unwrap_used (#1882)
* refactor: use clippy::unwrap_used

* fix log format use

* fix a bunch of macos ones

* oop

* allow schema script

* driveby schema bump
2025-11-22 23:26:02 -05:00
Adarsh Das 45b2522929 feature: add readonly mode (#1861)
* init

* Fixed code smells

* Updated documentation as per feedback
2025-11-17 06:03:46 -05:00
Adarsh Das c813b220af feature: add spacebar shortcut to toggle process tree nodes (#1830)
* feature: added spacebar as a toggle for proc tree mode

* bug: added check if the app is currently in search widget state

* refactor: moved the if statements inside the match case

* docs: added documentation for Spaec as tree toggle

* revert: changes

* feat: added space key to toggle tree

* refactor: clippy errors

* docs: updated documentation for space as toggle

* feat: experimental change to Minus, collapse entire tree

* fix: clippy errors

* feat: finished - and + as full tree collapse/expand

* refactor: clippy errors

* Made the all collapse function more concise

* Changed i32 calls to Pid

* updated help text

* Fixed array

* reverted total collapse and expand of trees

* array fix
2025-11-16 17:34:35 -05:00
Clement Tsang 9df4e30d7b bug: fix network graph y-axis cache updating + starting height occasionally being 0 (#1867)
* bug: fix using the wrong timestamp to invalidate network axis scaling cache

* fix bug with starting with 0.0 leading to having a max height of 0.0

* comment

* driveby
2025-11-16 14:30:57 -05:00
Clement Tsang c97cb063d1 other: clean up help text spacing + help text dialog sizing (#1865)
* other: clean up help text spacing + help text dialog sizing

* use 'safer' saturating, I think it gets optimized out...?

* semicolon + typo
2025-11-15 18:56:10 +00:00
Guillaume Gomez f88d9d9404 other: Simplify cfg condition (#1862) 2025-11-15 11:05:57 -05:00
Clement Tsang 873ba20e68 deps: bump ratatui to 0.30.0-beta.0 (#1860)
* deps: bump ratatui to 0.30.0-beta.0

* use SpaceEvenly

* explicitly mention layout-cache

* fix changelog as driveby
2025-11-11 05:57:51 -05:00
Clement Tsang 0735276122 bug: ensure avg cpu is drawn on top in "All" mode (#1859)
* bug: ensure avg cpu is drawn on top

* changelog
2025-11-11 05:47:09 -05:00
Clement Tsang 3c42f6502a bug: fix issues introduced with average CPU usage refactor (#1846)
* fix potential logic bug with generate points logic, but this isn't the actual issue

* update changelog

* why was that there

* okay let's not bother

* Revert "okay let's not bother"

This reverts commit 1ce8f5619f.

* Revert "why was that there"

This reverts commit 6a2a4da04a.

* Revert "fix potential logic bug with generate points logic, but this isn't the actual issue"

This reverts commit 7f7de8055b.

* Revert "bug/refactor: draw average CPU last, refactor CPU data code (#1804)"

This reverts commit 43e1b34899.

* reverse as a lazy fix for avg
2025-11-04 12:58:46 -05:00
Clement Tsang 8d06d729db other: fix clippy errors for 1.91.0 (#1844) 2025-11-02 10:00:53 -05:00
Clement Tsang beaeb03e90 refactor: remove custom layout constraint implementation (#1836)
As noted in #1406, I don't need the custom `Constraint` setup anymore. This also starts the work to refactor some really bad code around layouts.
2025-10-13 08:53:43 +00:00
Justin Martin 118bb5e061 feature: free arc (#1812)
* feature: free arc

* freebsd clippy no-default-features

* add alias to free_arc

* add get_threads to default config

* clippy

* code review: combine zfs feature and target_os build cfgs
2025-10-12 15:08:55 -04:00
Clement Tsang 16449f2697 docs: use bottom.pages.dev (#1703)
* docs: use bottom.pages.dev

This _might_ stick, this might not. I may only do this after releasing
one more stable version. We'll see.

* fix schema
2025-10-12 07:26:22 +00:00
Frederick Zhang 256c5aba68 fix: sort disk I/O by original rates instead of readable strings (#1833) 2025-10-10 03:07:34 -04:00
Clement Tsang 3d22177de6 bug: check subtraction when calculating network widget y-axis (#1827)
This PR adds an explicit check for the case where the `Instant` is somehow too small and falls back to manually checking for the oldest visible timestamp.
2025-10-01 07:55:23 +00:00
Clement Tsang adc802b54c deps: bump ratatui to 0.30.0-alpha.5 (#1821)
* deps: bump ratatui to 0.30.0-alpha.5

* bump lockfile deps too
2025-09-25 01:29:31 -04:00
Piotr Kubaj 59b1db530d bug: fix build on FreeBSD on ARM / POWER (#1817)
Both ARM and POWER use unsigned char. This PR fixes `process_ext.rs` to use `libc::c_char` rather than the previous `i8`.
2025-09-17 11:37:39 -04:00
Clement Tsang e4b814fd0b refactor: optimize username cloning for Unix processes (#1816)
* refactor: rename/update comments for uid_to_username

* use arc<str> instead of cloning user repeatedly

* clippy

* oop

* oop2

* hmmm hopefully that works?

* ugh
2025-09-14 23:47:49 -04:00
Clement Tsang c8614bf2be deps: bump deps and lockfile (#1815)
* deps: bump deps and lockfile

* fix expected error message in test

* fix some windows errors and lint stuff
2025-09-14 19:33:58 +00:00
Justin Martin 392a659f33 bug: skip avg cpu in basic mode with dedicated row (#1811)
update sample config
2025-09-14 14:53:30 -04:00
Justin Martin b07f940970 feature: hide k-threads (#1772)
* hide k-threads init

comment

* add config for hide_k_threads

arg help

* update docs for hide_k_threads

* add test_toggle_k_thread for process_table

* update help text and schema

* add hide_k_threads to sample_configs default

* add Virt column to sample default config

* update sample demo config column name for schema ci

* force_rerender_and_update from toggle_k_threads for updates when frozen

* use is_kernel for ProcessType

* remove todo

* Apply suggestions from code review

Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>

---------

Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2025-09-07 18:56:56 -04:00
Clement Tsang f1017d6f6f bug: fix issue with process name isolation on Linux (#1809)
* driveby fix for dash cmdline bin name

* fmt
2025-09-01 21:50:53 -04:00
Clement Tsang a35b81a187 docs: update docs page with missing features (#1805)
* add no key setting

* do it here instead of in main loop

* add a warning

* docs: update a bunch of docs with features

* linux-only test

* oop

* skip field check for other os

* oop

* easier way of doing it

* use dead code

* oop

* huh guess I don't need it
2025-08-29 23:12:19 -04:00
Clement Tsang d799c656aa feature: support ignoring all keypresses (#1719)
* refactor

* add no key setting

* do it here instead of in main loop
2025-08-29 21:30:50 -04:00
Clement Tsang 43e1b34899 bug/refactor: draw average CPU last, refactor CPU data code (#1804)
This PR makes it so we draw the average CPU on top again. This also refactors internals to have the average CPU stored separately.
2025-08-22 04:19:03 +00:00
Clement Tsang 47cc0b346a bug: fix colon at end of process name for now on Linux (#1800)
* driveby use rustix

* refactor some code aeround

* bug: fix colon at end of process name for now

* clippy

* comments

* changelog

* some other changes + test

* extra test
2025-08-21 07:21:44 -04:00
Clement Tsang 3ff7977e6f feature: add support for threads in linux (#1793)
* feature: add support for threads in linux

* bump version too

* only enable for linux for now

* thread some things around

* update changelog

* add highlighting support

* fmt and run schema

* how did this get added

* hmmm cfg in if seems to not work

* fix updated fields

* fixes

* revert uptime rename

* some cleanup

* fix doc

* oop
2025-08-17 07:07:50 +00:00
Clement Tsang f846fdcc05 bug: fix reported usage spike at the start on some OSes (#1788)
* bug: fix spike at the start on some OSes

* add clean

* bake things in better I guess

* hmmm no nvm

* tiny sleep

* update changelog
2025-08-14 22:04:48 -04:00
Clement Tsang 849edf71db bug: fix issue with battery widget time and small widths (#1787)
* bug: fix issue with battery time and small widths

* changelog
2025-08-15 00:56:06 +00:00
Clement Tsang 0f212183fe other: skip the initial sleep on data collection initialization (#1779)
* deps: bump sysinfo

* remove sleep on startup

* missing collection set

* some logic around updating the battery list to match how it is now

* more refactoring

* oops

* forgot to initialize battery manager

* fix list updating logic + battery manager logic

* comment

* initialize should refresh list to true

* ah

* this works a bit nicer
2025-08-13 06:57:45 +00:00
Clement Tsang 868667add8 deps: bump deps as of 2025-08-11 (#1778)
* docs: update changelog

* bump deps
2025-08-12 08:47:02 +00:00
Frederick Zhang 9fe558183b fix: use default disk.columns when only other disk.* configs exist (#1776)
I configured `[disk.name_filter]` and after upgrading to v0.11.0, the
disk widget became empty since `disk.columns` was parsed as an empty
vector unless I added `disk.columns` to my config as well.
2025-08-08 15:01:48 +00:00
Clement Tsang 566502347e docs: update things to reference 0.11.0 in prep for release (#1765)
* docs: update things to reference 0.11.0 in prep for release

Things still missing:
- Update schema
- Release notes
- Any doc site updates?
- Any GIF updates?
- Take a pass over README?

* update schema with 0.11

* update schema with virt

* update

* update date

* an attempt and failure to update the gif

* bump freebsd

* bump

* I swear

* okay so no freebsd 15, got it
2025-08-06 04:09:39 +00:00
Clement Tsang 2132da2f8b feature: option to have process tree entries be collapsed by default (#1770)
* Add option to have process tree collapsed by default

* Fix collapse logic

* format

* tweak how it's done

* oops

* slight tweaks to the no-children collapse logic

* update schema

---------

Co-authored-by: ceres <ceres.bezuidenhout@trintel.co.za>
Co-authored-by: Bucket-Bucket-Bucket <107044719+Bucket-Bucket-Bucket@users.noreply.github.com>
2025-08-04 23:29:42 +00:00
Clement Tsang 51c67ee599 other: change how we calculate swap usage in Windows (#1769)
* bump sysinfo

* other: change how we calculate swap usage in Windows

* update changelog

* update comments

* add test?

* adjust test
2025-08-03 05:25:11 +00:00
Clement Tsang 4d935bdd70 feature: support virtual memory column for processes (#1767)
* quick refactor of bytes/name

* oop

* Add virt mem field

* add value

* add virtual memory columns + tests

* fix

* Changelog
2025-07-30 04:24:21 +00:00
Clement Tsang bb0d4bdd32 refactor: refactor the data table increment position code (#1762)
* refactor: refactor the data table increment position code

* some comments

* changelog
2025-07-29 08:24:49 +00:00
yahlia 4356ab7b24 bug: fix increment for data tables if the change is greater than the number of entries left (#1759) 2025-07-29 03:52:58 -04:00
Clement Tsang 2e6ac01f99 bug: fix parsing issue around certain disk names (#1755)
* bug: fix parsing issue around certain disk names

Turns out that in /proc/mount disk names may have weird escape
characters - these need to be changed when parsing it.

* update changelog

* back to the slow

* Add test
2025-07-17 02:15:55 +00:00
Clement Tsang 0f878c4ae2 refactor: fix clippy warnings for 1.88.0 (#1748) 2025-06-26 22:47:56 +00:00
Clement Tsang 1769ee0987 deps: bump sysinfo to 0.35 (#1738)
* deps: bump sysinfo, fix cpu

* fix things for at least Linux

* bump some other stuff

* more things

* windows

* more stuff

* display

* ahhhh it's not stable

* redundant f32

* fix freebsd
2025-06-09 03:00:09 -04:00
Clement Tsang 7728c76419 bug: fix some bugs around key bindings with new process kill dialog (#1737)
* bug: fix some bugs around key bindings with new process kill dialog

* clippy
2025-06-08 05:27:09 -04:00
Clement Tsang 98342617a1 refactor: update how we render and handle process kill dialogs (#1701)
* fmt

* temp work

* get yes/no working

* cleanup

* fill out some more buttons

* conditional compilation

* update

* update docs

* wait this just works

* like 80% of the way there

* some stuff around the killing screen

* mouse works

* done!

* clippy

* more stuff

* fix some imports for windows

* android fixes

* oop

* ahh

* hmm
2025-06-08 04:46:31 -04:00
Clement Tsang 00afd66006 refactor: share implementation for pecentage-based time graphs (#1736)
* refactor: move components to a 'drawing' folder

* Revert "refactor: move components to a 'drawing' folder"

This reverts commit a1316bdf3a.

* move stuff out of constants because it sucks

* move more things!

* cleanup

* some restructuring

* refactor percent time graph to common impl

* wow thanks copilot
2025-06-03 04:13:10 +00:00
Clement Tsang 3d35d08347 deps: bump root deps as of 2025-06-01 (#1734)
* deps: bump root deps as of 2025-06-01

* update schema generation

* update config file link too

* rerun
2025-06-01 19:49:05 -04:00
Clement Tsang b2506e5e85 ci: bump freebsd-vm to v1.2.0 (#1730)
* ci: bump freebsd-vm to v1.2.0

* also bump freebsd versions

* oops it was clippy

* fix ci pass check
2025-05-25 20:59:31 -04:00
Clement Tsang 134888dfec refactor: refactor some process grouping code (#1727)
Remove one clone for process grouping.
2025-05-10 22:24:06 +00:00