ClementTsang
798683b81f
other: add test for battery flag if battery feature is off
2022-05-01 17:15:54 -04:00
Clement Tsang
d297ee4639
refactor: remove some simple as-casts ( #697 )
...
Remove some simple as casts that are easy to change to .into(), or easy to check.
2022-03-27 22:01:06 -04:00
Clement Tsang
01f6bddab6
deps: update clap to 3.x ( #690 )
...
Updates bottom to use clap 3.x, along with some small refactoring changes.
2022-03-07 22:53:02 -05:00
Randy Barlow
9acfacb5a5
Feature gate test_default_battery_movement
...
test_default_battery_movement() is now feature gated on the
battery feature.
fixes #581
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
2021-09-18 13:46:01 -04:00
Chloe Brown
cd1fe8b495
bug: Tests try to modify user home directory ( #535 )
...
Fixes a bug where running `cargo test` would try to create a
configuration file for the user.
2021-07-06 21:01:22 +01:00
Clement Tsang
fb7b1226fd
feature: add nord and nord-light colours ( #406 )
...
Adds colour schemes for Nord, along with a light variant.
2021-02-15 14:12:43 -05:00
ClementTsang
2d127f198e
ci: uptick to 0.5.1, fix ci
2020-11-22 02:33:48 -05:00
Clement Tsang
e43456207b
feature: default colour schemes ( #296 )
...
Adds some default colour choices to choose from.
2020-11-15 05:16:47 -05:00
Clement Tsang
22278d7d75
other: aarch64 support ( #217 )
...
Adds theoretical aarch64 support.
2020-09-02 02:59:51 -04:00
ClementTsang
663ae6c5c2
bug: fix broken check from last commit, add tests
2020-09-01 03:08:46 -04:00
Clement Tsang
a4ddd649e1
refactor: Update error messages w/ anyhow and thiserror ( #216 )
...
Refactoring and updating of error messages + tests to be more useful.
2020-08-31 23:59:33 -04:00
Clement Tsang
3d2fc76aa2
feature: Add mouse click support for moving between widgets ( #208 )
...
Adds mouse support to the application, to move between widgets and click on elements.
List of things to added:
- Click to move between widgets
- Click to move between widgets in basic mode
- Click on widget entries
- Ability to disable mouse if you don't like it, I guess
2020-08-29 18:54:18 -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
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
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
Clement Tsang
364049ee5f
chore: update travis a bit for msrv
2020-05-04 18:53:05 -04:00
ClementTsang
1ff2606c90
update tests to deal with msrv
2020-05-04 18:23:34 -04:00
ClementTsang
f4c6cb95e4
test: add config tests, update arg tests
2020-04-23 15:33:51 -04:00
ClementTsang
4d512afdae
refactor: update arg tests to use new binary env
2020-04-23 13:29:10 -04:00
Clement Tsang
0b1d84fdf5
Add modularity to widget placement and inclusion ( #95 )
2020-04-01 20:31:43 -04:00
ClementTsang
648864176f
Updated documentation, made error in args clearer
2020-03-10 01:51:28 -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
effd494683
Add two new tests; bit unrelated tbh.
2020-03-03 01:02:54 -05:00
ClementTsang
4c98fe4fde
Refactoring.
2020-03-02 00:09:45 -05:00
ClementTsang
bbdd7786ce
Optimized imports as per clion
2020-02-28 22:24:24 -05:00
ClementTsang
0697d9dd56
Fix issue with default file paths not being respected; updated default file paths.
2020-02-20 23:10:52 -05:00
Clement Tsang
d0a7a0dd72
Quick error change for processes to be a bit more graceful, fix tests
2019-12-30 22:39:49 -05:00
ClementTsang
f8209c9162
Update controls.
2019-12-15 00:17:15 -05:00
ClementTsang
d1089cacf7
Fix for broken tests
2019-10-20 01:13:25 -04:00
ClementTsang
231049c118
Fixed text issue.
2019-09-16 23:34:34 -04:00
ClementTsang
1ebe04ecb2
Added vim + keyboard bindings.
2019-09-16 22:39:57 -04:00
ClementTsang
282acd1395
Made charting look better, switched back to braille markers (its the only way I could make it look good), and dealt with some issues regarding the display of networking.
2019-09-15 00:06:57 -04:00
ClementTsang
2435b9d90c
Fixed tests.
2019-09-14 22:29:40 -04:00
ClementTsang
4846175638
Added error util, finished network graph.
2019-09-14 21:48:29 -04:00
ClementTsang
c8bbf5850c
Set up more file hierarchy.
2019-09-04 23:45:19 -04:00