Commit Graph
997 Commits
Author SHA1 Message Date
ClementTsang 70779c078d docs: update help and README for bindings 2020-04-28 22:46:48 -04:00
Andy e850d3d2a8 Kill dialog: vim navigation (#134)
Add `hjkl` as navigation keys in kill dialog.

Closes #133
2020-04-28 17:43:15 -04:00
Clement Tsang 2faf3c6592 refactor: revert linear interpolation until tui fix comes 2020-04-28 16:44:10 -04:00
ClementTsang 78e3c37947 refactor: fix clippy errors 2020-04-27 16:40:45 -04:00
ClementTsang 15dba2e6cf bug: fix empty widget in layout 2020-04-27 16:20:36 -04:00
ClementTsang 8e4f6a3a02 feature: add battery flag 2020-04-27 15:56:39 -04:00
ClementTsang 8534d42f1b refactor: separate state to different file 2020-04-27 13:48:56 -04:00
ClementTsang e33dbbd350 clippy: remove redundant clone 2020-04-26 20:08:02 -04:00
ClementTsang 80548457f9 refactor: cleaned up some of the concurrent parts 2020-04-26 19:53:26 -04:00
Clement Tsang cf48561777 feature: add battery health percentage 2020-04-26 00:11:34 -04:00
Clement Tsang 3a6f7a6750 refactor: changed how we set help text on resize and init 2020-04-25 17:32:31 -04:00
Clement Tsang 863e780f2f change: add scrolling to help menu 2020-04-24 19:17:58 -04:00
ClementTsang 9fe6e7d4d2 clippy: use suggested to_string and dereferencing 2020-04-23 15:51:35 -04:00
ClementTsang a6b48921ee refactor: hoist painter creation up to avoid having to clean if fail 2020-04-23 15:33:31 -04:00
ClementTsang 04e4c32aec refactor: update error messages and hex error detection 2020-04-23 15:33:13 -04:00
ClementTsang b1f86262f3 refactor: update error messages to be more uniform 2020-04-23 14:10:59 -04:00
ClementTsang 87dba602f9 fix: Fixes typo in config generation 2020-04-22 17:26:50 -04:00
ClementTsang 121370e9f4 docs: update default config 2020-04-22 17:19:36 -04:00
ClementTsang 25addaee63 chore: Add some words to VS Code dict 2020-04-22 17:13:05 -04:00
ClementTsang 7004649a6d Move to tui-rs' built in linear interpolation 2020-04-20 00:29:59 -04:00
ClementTsang 0574678746 Move to stateful except for CPU 2020-04-19 23:39:24 -04:00
ClementTsang f334a72fb1 Made table gap optional rather than enforced 2020-04-19 17:45:32 -04:00
ClementTsang b42583e04c Remove header gap in most tables 2020-04-18 22:54:35 -04:00
ClementTsang 90e1e9f4cb Fix bug with network legend 2020-04-18 21:11:20 -04:00
ClementTsang 207444fbbf Update network legend again 2020-04-18 20:42:52 -04:00
ClementTsang 7248298995 Update highlight to light blue; new network legend 2020-04-18 19:53:11 -04:00
ClementTsang bc571588e4 refactor: Update tui to 0.9; refactor with new features 2020-04-18 18:05:41 -04:00
Clement Tsang 163f6823a2 feature: Add battery widget (#120) 2020-04-16 20:06:50 -04:00
Clement Tsang 4a4a9cf221 bug: Fix dd failing on non-first entries (#116) 2020-04-12 19:26:32 -04:00
Clement Tsang bcfd09da88 change: highlight borders & table headers to cyan (#115) 2020-04-12 18:27:58 -04:00
Clement Tsang a351f05d4a feature: Show process state (#114)
This is not 100% finished and will be refined in the future, as I plan to
do a bit of an overhaul on how the process widget is going to look and
functionality.  In particular, tabbed is currently kinda just slapped
together (I just combine all the states together as one big string).

However, it is enough to work and show state normally...
2020-04-11 21:02:27 -04:00
Clement Tsang f210681ae7 feature: add io and io/s for processes (#113) 2020-04-10 20:18:26 -04:00
ClementTsang ba5c2734cf refactor: Remove debug. 2020-04-07 22:38:53 -04:00
Clement Tsang 7d9ad1ee78 bug: Fix sizing in search and broken tab logic 2020-04-07 22:38:22 -04:00
Clement Tsang b32c984843 bug: Fix sorting processes by name being case-sensitive 2020-04-07 21:42:57 -04:00
ClementTsang 46e0eee1d3 bug: fix issue with proc widget merging if in the same column as another 2020-04-07 21:15:58 -04:00
Clement Tsang d2434bf8ad uptick: 0.3.0 2020-04-07 21:07:24 -04:00
ClementTsang 07efc3f301 opt: Only recalculate rect layout if resize or startup 2020-04-06 23:38:00 -04:00
Clement Tsang 9127cb1468 refactor/bug: Array bound checking, fix CPU jump 2020-04-06 23:04:04 -04:00
Clement Tsang 0a63ee46ef refactor: Deal with some cognitive complexity 2020-04-06 00:40:55 -04:00
Clement Tsang a40ddce84f deps: Upgrade crossterm and sysinfo (#105) 2020-04-05 23:20:22 -04:00
Clement Tsang ba0fbf808e (perf) Avoid harvesting if widget is not being displayed 2020-04-04 18:29:32 -04:00
ClementTsang 14c58507c0 (docs): Updates docs and removes a debug 2020-04-03 01:14:41 -04:00
ClementTsang 572d665a8a (docs): Update README to be a bit nicer 2020-04-03 00:50:56 -04:00
Clement Tsang 0b1d84fdf5 Add modularity to widget placement and inclusion (#95) 2020-04-01 20:31:43 -04:00
Mahmoud Al-Qudsi 2b418fb506 Fix division by zero when memory data is not available (#85)
The total memory values may be zero when bottom is run on an unsupported
(or not-fully-supported) platform.

The previous behavior resulted in a NaN value for the memory datapoints,
which was passed through to tui-rs which ultimately panicked when
attempting to graph the memory widget.
2020-03-19 21:03:52 -04:00
Clement Tsang 1968bb14b4 Cleanup before modularity (#84)
* Uptick some crates, update README dependencies

* Cleanup before modularity feature.

* Fix missing reset zoom on reset

* Fixed reset... not resetting search or data displayed

* Cleaned up options a tiny bit to make more sense.

* Cleaned up some TODOs and the like.

* specify only build master branch.
2020-03-13 01:07:24 -04:00
Clement Tsang d07cee0f7e Fix cpu legend colouring (#83)
* Initial fix, but pending a rewrite.

* Initial fix, but pending a rewrite.

* Merged two separate iterations into one for cpu legend.

* Refactor average cpu, fix bug with legend and cursor.
2020-03-11 01:02:47 -04:00
Clement Tsang 6c5f95aa5e Merge branch 'master' into fix_cpu_scroll 2020-03-10 22:21:08 -04:00
ClementTsang 05e0e6bb82 Forgot to set size field upon detecting a resize... 2020-03-10 21:42:12 -04:00