Commit graph

840 commits

Author SHA1 Message Date
ClementTsang
279504e401 ci: update PKGBUILD template as per suggestions 2020-08-22 23:41:41 -04:00
ClementTsang
5e0ab22645 ci: fix some bugs... 2020-08-22 23:32:28 -04:00
Clement Tsang
397a7e8467
ci: Add winget template generation (#199)
Adds winget CI generation.
2020-08-22 20:22:47 -04:00
Clement Tsang
3252796f17
change: Allow e to also close expanded widgets
Allow `e` to toggle expansion, rather than only allowing it to open.
2020-08-22 17:31:19 -04:00
Clement Tsang
1a25fbb987
bug: fix freezing not affecting processes during search and sort
Fixes a bug where searching refreshed process data even when frozen.
2020-08-22 17:23:27 -04:00
Clement Tsang
3394b9ee66
feature: allow searching by state, add more keyword variants
Allows searching by state (`state = sleep`), and adds more keyword variants for searching: `cpu%`, `mem%`, `r/s`, `w/s`, matching the columns.
2020-08-22 15:38:13 -04:00
Clement Tsang
c82f4d40b4
feature: Support memb (mem bytes) searching in processes
Supports searching by the new mem value.
2020-08-21 22:59:49 -04:00
Clement Tsang
ff15649be7
refactor: remove kill command, use libc
Removes the kill command call and instead uses libc to manage killing processes.
2020-08-21 18:16:37 -04:00
Clement Tsang
7475f24a4e
feature: Add hook to properly clean up in the case of a kill call
Adds a hook to properly clean up the program in case the program gets SIGTERM'd.
2020-08-21 16:00:14 -04:00
Clement Tsang
a1766961fe
Clarify architecture support 2020-08-21 14:53:58 -04:00
Clement Tsang
1dc9346d3b
refactor: Remove ps calls
Removes and refactor ps calls that... should have not been there in the first place.
2020-08-21 01:33:12 -04:00
Clement Tsang
4b03b4b0b0
refactor: Refactor code, add new tests
Refactor code so we use a lib, allowing for easier testing. Adds additional tests for layouts.
2020-08-19 16:32:33 -04:00
Clement Tsang
f6aa8e5d1d
ci: fix indentation error 2020-08-19 10:40:58 -04:00
ClementTsang
a7b8d45682 Add deploy github script 2020-08-19 10:27:57 -04:00
Clement Tsang
b2a00d49f1
ci: Automatically build package files on release
Automatically builds packages for AUR, chocolatey, and homebrew on release.
2020-08-18 23:22:50 -04:00
ClementTsang
eb5ac54ad0 bug: fix not switching sort type when toggling % in mem 2020-08-17 15:52:09 -04:00
Clement Tsang
3c373d7129
feature: Add appox. total mem as an option for processes and basic mem
Adds a way to display the memory value as a column in the processes widget and the basic memory widget, rather than just the percentage.
2020-08-17 15:41:37 -04:00
Clement Tsang
59ce90f577
bug: Fix bug w/ parsing /proc/{pid}/stats
Fixes a bug caused by incorrectly reading the `/proc/{pid}/stats` file.  Due to splitting by whitespace, the string parsing was read incorrectly if the process also contained spaces.
2020-08-16 20:53:34 -04:00
Clement Tsang
08e49b63c1
refactor: Revert tui upgrade to 0.10
Reverts tui upgrade, there are some bugs and issues - namely, issues with rendering text.
We can revert this commit when those bugs are dealt with (should be fine after 0.10.1, tested building from the repo).
2020-08-16 04:25:59 -04:00
ClementTsang
9068108d0f bug: fix missing default battery layout during refactor 2020-08-16 03:08:09 -04:00
Clement Tsang
d211c6474c
bug: Fix bug caused by hitting enter w/ a failed dd
This would cause the dd fields to get stuck due to never resetting.
2020-08-16 02:56:54 -04:00
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