Commit Graph

226 Commits

Author SHA1 Message Date
Clement Tsang f3897f0538
feature: Allow sorting by any column
This feature allows any column to be sortable.

This also adds:
- Inverting sort for current column with `I`
- Invoking a sort widget with `s` or `F6`.  Close with same key or esc.

And:
- A bugfix in regards the basic menu and battery widget
- A lot of refactoring
2020-08-15 20:35:49 -04:00
Clement Tsang e1a7378386
change: Update macOS config dir
Update documentation and program to use the correct config directory as per the dirs package.
2020-08-12 02:15:57 -04:00
Clement Tsang d0cc6078df
deps: Update dependencies, drop MSRV
Update dependencies to most recent versions if applicable. Refactor to deal with breaking changes. Drop MSRV due to dependency issues, just support stable and later.
2020-08-11 20:22:39 -04:00
Clement Tsang 30bdaa6073
feature: add full command to process widget
This PR adds the ability to toggle between the process name and process path. Currently, this uses `P` as the modifier key.

Currently, the longer command names are dealt with by forcefully changing the width of the columns, but this can be handled in a more graceful manner IMO.
2020-08-07 04:29:20 -04:00
Clement Tsang e6379982f1
refactor: reduce unchecked type conversions to usize 2020-05-18 23:34:50 -04:00
Clement Tsang 12e4777d97
change: remove slash, change scroll behaviour on cpu
- Removal of the old slash-space-to-hide behaviour of CPU widget
- Scrolling onto a specific entry will only show that entry
- Showing average is now default
2020-05-16 22:38:19 -04:00
ClementTsang ecc111b21a refactor: fix clippy errors 2020-05-02 17:39:48 -04:00
ClementTsang 6e81fbeebf change: more advanced searching and filtering 2020-05-02 16:01:07 -04:00
ClementTsang bb45763b39 feature: Add alt-h and alt-l to move left/right within widget 2020-04-30 15:29:36 -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 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 a6b48921ee refactor: hoist painter creation up to avoid having to clean if fail 2020-04-23 15:33:31 -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 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
Clement Tsang 163f6823a2
feature: Add battery widget (#120) 2020-04-16 20:06:50 -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
Clement Tsang b32c984843
bug: Fix sorting processes by name being case-sensitive 2020-04-07 21:42:57 -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
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
ClementTsang ee1504db89 Fix cpu scroll. 2020-03-10 21:36:13 -04:00
ClementTsang e5588f1606 Add hiding time and autohiding time. 2020-03-09 00:52:29 -04:00
ClementTsang 78a05bc683 Fixes bug with too large inputs causing a panic
We would prefer a more graceful error message stating what went wrong.
Caught by the Travis test.
2020-03-08 22:27:41 -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 226c4e5a68
Clean up and manage some basic stuff (#73)
* Remove debug statement.

* Remove redundant functions from main

* Update pull request template.

* Format temperature line.

* Update README for chocolatey.

* Add note about basic mode and htop's inspiration.
2020-03-08 00:35:01 -05:00
Clement Tsang 188858fedd
Formatting and typos (#63)
* Fix typo and run rustfmt.

* Also add rustfmt check to travis... this might be temporary.

* Add a bit on default config files being created in the debian extended description.

* Add rustup component add to travis.

* Disable rustfmt for now, seems to play weird on windows builds.

* Remove unneccesary deprecate ignore.
2020-03-05 02:09:29 -05:00
Clement Tsang d018c6ee88
Make update rate u128 across the board. (#64) 2020-03-05 01:30:53 -05:00
ClementTsang b26f2eca4e Rename cevent to event. 2020-03-04 23:51:05 -05:00
ClementTsang 26c1175a8a More merge conflicts. 2020-03-04 23:48:40 -05:00
Clement Tsang fee8b5c8a1
Merge branch 'master' into simple_mode 2020-03-04 23:47:53 -05:00
ClementTsang 2a40750067 Fix merge conflict. 2020-03-04 23:45:59 -05:00
shilangyu 47cc34a8e2 reflected auto config creation 2020-03-02 22:07:41 +01:00
ClementTsang 225ad5366c Added proper navigation for basic mode. 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 df01a94cb0 Another import optimization. 2020-03-02 00:09:45 -05:00
Clement Tsang 735038f060
Merge branch 'master' into populate-config 2020-02-29 23:16:15 -05:00