Commit graph

819 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
ClementTsang
84f63f2f83 refactor: remove redundant newlines 2020-08-13 02:04:53 -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
ClementTsang
6e38d73116 change: Refactor dd drawing code
This also slightly improves how we generate the widths/heights to be
less... terrible.

Note this is not done, unfortunately.  This requires tui-rs' wrapped
paragraph height PR to land and release so I can properly calculate the
height offsets.

See https://github.com/fdehau/tui-rs/pull/349 for details.
2020-08-12 00:27:02 -04:00
ClementTsang
60f4759494 change: Add WASD keys for widget selection movement 2020-08-11 21:19:55 -04:00
ClementTsang
de8460cf9c docs: Fix README typo [skip travis] 2020-08-11 20:23:23 -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
ClementTsang
17552c50cf docs: Update changelog w/ full process feature [skip travis] 2020-08-07 04:31:42 -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
d2129056e3
Merge pull request #177 from ClementTsang/all-contributors/add-svenstaro
docs: add svenstaro as a contributor
2020-07-27 22:49:23 -04:00
allcontributors[bot]
690ab05a0b
docs: update .all-contributorsrc [skip ci] 2020-07-28 02:49:12 +00:00
allcontributors[bot]
17d351c7eb
docs: update README.md [skip ci] 2020-07-28 02:49:11 +00:00
Clement Tsang
d9a9289508
Merge pull request #176 from svenstaro/patch-1
Prefer explicit yay installation command
2020-07-27 22:48:16 -04:00
ClementTsang
777a5fb9f2 docs: update README to mention battery option in config 2020-07-27 22:46:23 -04:00
Sven-Hendrik Haase
fa1ea9bc76
Prefer explicit yay installation command
If you run `yay` without `-S` it'll perform a search instead of a direct match.
2020-07-20 21:47:46 +02:00
ClementTsang
eeebb96912 travis: Fix travis to not update the lock file 2020-07-08 17:05:37 -04:00
ClementTsang
58b5c21197 docs: specify that --locked may be required 2020-07-08 16:58:32 -04:00
ClementTsang
49de6d36ab travis: add force during install test 2020-07-08 15:57:08 -04:00
ClementTsang
cc1ed4fbfd uptick: update Cargo.lock to 0.4.5 2020-07-08 15:43:28 -04:00
ClementTsang
b111b545d8 travis: forgot to add a --locked check to install 2020-07-08 15:21:31 -04:00
ClementTsang
5cfbaf672d travis: move cargo install test to script rather than deploy 2020-07-08 15:20:25 -04:00
ClementTsang
4cc403b594 uptick: 0.4.5
This patch is just to deal with crates.io not using the correct
Cargo.lock I had intended.
2020-07-08 15:15:16 -04:00
ClementTsang
be6f824a43 clippy: clippy error due to redundant conversion
Fixes a redundant usize to usize conversion.
2020-07-06 02:36:24 -04:00
ClementTsang
ad99803d09 travis: skip dependency check for msrv 2020-07-06 02:33:04 -04:00
ClementTsang
121d483b50 revert: Revert "deps: update cargo.lock"
This reverts commit f8127465b8.
2020-07-06 02:25:14 -04:00
ClementTsang
f8127465b8 deps: update cargo.lock 2020-07-06 02:09:10 -04:00
ClementTsang
d643ef7401 uptick: 0.4.4 2020-07-06 01:10:03 -04:00
ClementTsang
3564f00f39 docs: update for 0.4.4 2020-07-06 01:09:01 -04:00
ClementTsang
3ffa437af3 github: remove chore template, fix feature template label 2020-05-21 22:35:10 -04:00
Clement Tsang
9600785cf2
docs: update CHANGELOG 2020-05-21 22:25:44 -04:00
Clement Tsang
d88b8194df
Merge pull request #166 from ClementTsang/fix_or_in_search 2020-05-21 22:22:44 -04:00
ClementTsang
cef81d1b8d refactor: use fold to avoid clones in search for implied AND 2020-05-21 22:06:51 -04:00
ClementTsang
c7edad91ed refactor: fix clippy error 2020-05-21 21:46:21 -04:00
ClementTsang
b33ea11af2 bug: fix query not working for or, refactor a bit 2020-05-21 21:40:40 -04:00
ClementTsang
948c1206e9 chore: wrote better debugging printing for queries
This should make reading completed queries a bit easier for debugging
2020-05-21 16:55:51 -04:00
ClementTsang
dcaef7ebc4 bug: fix incorrect parsing for process i/o calc
Cause was checking the wrong indices for values.  I thought I
had taken in a vector of strings that were just byte values,
but they actually contained the labels... oops.
2020-05-21 14:03:00 -04:00
ClementTsang
f3ca98fe30 docs: some minor README and CHANGELOG changes 2020-05-20 21:21:49 -04:00
ClementTsang
6d365140b6 chore: add vscode word dict 2020-05-20 11:55:03 -04:00
ClementTsang
3d8a8b4e85 deps: update typed-builder to 0.6.0 2020-05-19 21:17:01 -04:00
Clement Tsang
cf1d41c83a
feature: add back states to unmerged processes 2020-05-19 17:58:17 -04:00
ClementTsang
e2e1ac3006 change: always highlight selected cpu 2020-05-18 23:36:58 -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
a074808a00 deps: update cargo.lock 2020-05-15 00:37:10 -04:00
ClementTsang
2d9d10d8f9 uptick: 0.4.3 2020-05-15 00:00:02 -04:00
ClementTsang
2ae2ebd6d8 deps: update sysinfo 2020-05-14 22:22:29 -04:00
ClementTsang
18514e87bb docs: clarify how README in master may be ahead 2020-05-13 00:16:55 -04:00
ClementTsang
549d61b836 bug: add extra check for process cpu value to be >= 0 2020-05-13 00:15:41 -04:00
Clement Tsang
4831ec3d5c
docs: [skip travis] Update version for clarity 2020-05-12 00:26:56 -04:00
ClementTsang
be6fb5fc4d deps: update cargo.lock 2020-05-11 23:53:43 -04:00