Commit graph

121 commits

Author SHA1 Message Date
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
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
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
7248298995 Update highlight to light blue; new network legend 2020-04-18 19:53:11 -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
f210681ae7
feature: add io and io/s for processes (#113) 2020-04-10 20:18:26 -04:00
Clement Tsang
7d9ad1ee78
bug: Fix sizing in search and broken tab logic 2020-04-07 22:38:22 -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
ba0fbf808e
(perf) Avoid harvesting if widget is not being displayed 2020-04-04 18:29:32 -04:00
Clement Tsang
0b1d84fdf5
Add modularity to widget placement and inclusion (#95) 2020-04-01 20:31:43 -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
ClementTsang
ee1504db89 Fix cpu scroll. 2020-03-10 21:36:13 -04:00
ClementTsang
46f1b7df00 Redid how we auto-set time if we have autohide on. 2020-03-10 01:43:42 -04:00
ClementTsang
8630287676 Default to showing time at first for autohide. 2020-03-10 01:38:37 -04:00
ClementTsang
e5588f1606 Add hiding time and autohiding time. 2020-03-09 00:52:29 -04:00
ClementTsang
f70cf02414 Add configurable default time and interval values
Also added documentation both in app and in the README.
2020-03-08 22:01:49 -04:00
ClementTsang
3026fbd1bc Add time scaling. 2020-03-08 19:47:10 -04:00
ClementTsang
6d0b7035d3 Redid basic mode logic and separated CPU
* Separated CPU into CPU legend and graph

* Redid how I did maximizing with basic mode
2020-03-08 16:17:28 -04:00
Clement Tsang
132a5a2170
Fix dialog box height and scroll label (#71)
* Fixes search with small mode by changing the prompt based on size.

* Minor fixes for search

- Remove ignore unused var lint
- Add a bit more spacing to deal with large unicode
- Add on-right movement on type

* Add contributor's list and bug/req section

* Check for div by zero

* Fix for dd in terms of sizing.

* Added (temporary) fix for help box.  Scrolling is the ideal solution but will leave that for another time.
2020-03-05 23:54:39 -05:00
Clement Tsang
d018c6ee88
Make update rate u128 across the board. (#64) 2020-03-05 01:30:53 -05:00
ClementTsang
32ca9edf11 Fix highlighting and cpu filtering when maximized 2020-03-04 18:16:19 -05:00
ClementTsang
f3ebed6185 Add table indicator to basic. 2020-03-03 00:48:07 -05:00
ClementTsang
1ba1b0318f Fixed bug with basic mode and default position with basic variants. 2020-03-02 23:45:44 -05:00
ClementTsang
225ad5366c Added proper navigation for basic mode. 2020-03-02 00:09:45 -05:00
ClementTsang
fcd529aca2 Fixed column organization, need to refactor CPU side to remove any redundant code. 2020-03-02 00:09:45 -05:00
ClementTsang
14c2320de2 Added highlighting + begin finalizing arrangement. Still not done. 2020-03-02 00:09:45 -05:00
ClementTsang
4c98fe4fde Refactoring. 2020-03-02 00:09:45 -05:00
ClementTsang
eb2622467f Refactoring. 2020-03-02 00:09:45 -05:00
ClementTsang
ff43799037 Add basic flag + option. Not functional yet. 2020-03-02 00:09:45 -05:00
ClementTsang
c715133b4d Some more suggestions based on clion. Mostly removing brackets. 2020-02-28 22:39:26 -05:00
ClementTsang
75a1934420 rustfmt 2020-02-28 22:27:35 -05:00
ClementTsang
bbdd7786ce Optimized imports as per clion 2020-02-28 22:24:24 -05:00
ClementTsang
05d4982a1a Treat backspace as a cursor left movement. 2020-02-28 19:54:20 -05:00
ClementTsang
818d920835 Fixed cursor issue. 2020-02-28 01:12:24 -05:00
ClementTsang
3f55f071b7 Some minor things like adding a question template + removal of debug. 2020-02-27 22:50:43 -05:00
ClementTsang
cc751e19ae Fix issue with cursor on canvas due to not incrementing by the SIZE of the grapheme. 2020-02-27 17:15:09 -05:00
ClementTsang
ce9b5372d9 Use max grapheme length rather than max "string" length. 2020-02-27 16:15:28 -05:00
ClementTsang
a755a5d41c Switch to using unicode_segmentation's cursor as a basis on how we do cursor movement in search. 2020-02-27 16:10:33 -05:00
ClementTsang
0660184099 Colours if selected and F1-3 keys for search options
Added different colours to search options if selected; added F1-3 keys as an alternative for searching.  Both are available, but on macOS F1-3 will be suggested instead.
2020-02-25 21:24:31 -05:00
ClementTsang
ceaedad6dc Skip control characters if they are somehow passed in as a char to on_char_key. 2020-02-24 20:07:38 -05:00
ClementTsang
67c6984406 Pretty sure I fixed scroll resizing... 2020-02-19 19:56:18 -05:00
ClementTsang
8cf5b42f29 Update cargo.toml, some todos 2020-02-19 00:16:40 -05:00
ClementTsang
2135ebbef1 Aaaaand revert again. 2020-02-19 00:06:36 -05:00
ClementTsang
2f59af412d Tons of refactoring and fixes.
* Fixed a bunch of previously introduced bugs.  Oops.
* Some minor refactoring/efficiency changes that *should* help.  Should.
2020-02-17 22:59:35 -05:00
ClementTsang
8e1c525e2a Fix issue introduced with searching and ctrl-u 2020-02-17 18:13:31 -05:00