summaryrefslogtreecommitdiffstats
path: root/src/canvas
AgeCommit message (Collapse)Author
2020-11-18bug: remove buggy auto-generated CPU colour implementation (#308)Clement Tsang
Removes the random automatically generated colours for the CPU metrics. This was not supported in all terminal emulators, and would cause some of them to break (namely macOS Terminal). Instead we'll default to colours we can be more certain will work and loop through them as required. Users can still override these colours with their own.
2020-11-18feature: Add collapsible tree entries (#304)Clement Tsang
Adds collapsible trees to the tree mode for processes. These can be toggled via the + or - keys and the mouse by clicking on a selected entry.
2020-11-15feature: default colour schemes (#296)Clement Tsang
Adds some default colour choices to choose from.
2020-11-02refactor: Better responsiveness when resizing cpu basic widget (#292)Clement Tsang
Gives better and less jank responsiveness when resizing the window in narrow sizes for the cpu basic widget.
2020-11-02bug: fix incorrect basic cpu spacing (#291)Clement Tsang
Fixes a bug with CPU spacing on basic mode.
2020-11-02bug: fix incorrect offset for cpu list in cpu basic widget (#289)Clement Tsang
Fixes the CPU basic widget showing incorrect data due to an incorrect offset when displaying the data.
2020-11-02bug: fix incorrect CPU colour offset (#290)Clement Tsang
Fixes an incorrect offset affecting the CPU colour when scrolling.
2020-11-02clippy: fix unwrap_or_else usage (#286)Clement Tsang
Removes some unwrap_or_else calls when unwrap_or would suffice that were caught by clippy nightly.
2020-10-17feature: Add simple indicator for when data updating is frozen (#269)Clement Tsang
2020-10-17refactor: Remove redundant as_ref() calls (#268)Clement Tsang
Minor refactor to remove redundant `as_ref()` calls.
2020-10-13bug: Fix widget highlighting styling for dialogs (#266)Clement Tsang
Fixes styling for dialog titles. Cherry picked from commit 06573becfa3c089ac4b2a17c9443f84b6a5af3e8.
2020-09-26bug: fix basic mode arrows being slightly larger than intendedClementTsang
2020-09-26refactor: tui-rs 0.11.0 refactor (#253)Clement Tsang
Refactors tui-rs usage to the new 0.11.0 release. This release also fixes the highlighting bug from #249, and now, expanding a widget no longer overrides the widget title colour. This commit also introduces #255, but that seems to be easy to bandaid so hopefully it will get fixed soon?
2020-09-22feature: Beginnings of in-app config (#231)Clement Tsang
Initial refactorings and additions to support in-app config. - Refactor our current options logic to support in-app configs. That is, we can write to a config file with our changes now. - The default action when creating a new config file is to leave it blank. (TBD and for now, not sure on this one) - Previously, we would set everything in a config file on startup; now we need to read from the config TOML struct whenever. - `C` keybind is now occupied for configs. - `no_write` option to never write to a config file.
2020-09-18bug: Fix for index oob caused by terminal size mismatch (#238)Clement Tsang
Fix for an index out-of-bounds by resizing to a smaller terminal just after the program got the terminal size, but right before the terminal started drawing.
2020-09-11feature: mouse support for tabs and dd dialog (#230)Clement Tsang
2020-09-09refactor: rename data harvesting fns to what archs/oses they support (#229)Clement Tsang
Just a simple rename.
2020-09-09refactor: rewrite column algorithm (#227)Clement Tsang
Update how we position and generate column widths to look less terrible. This also adds truncation w/ ellipsis to the columns, and for processes, the state will automatically shrink to a short form (just a character) if there isn't enough space.
2020-09-06feature: Adds tree view (#223)Clement Tsang
Adds a tree process view to bottom. Currently uses a pretty jank method of column width setting, should get fixed in #225.
2020-09-02feature: Add ability to filter out disks and temp (#220)Clement Tsang
You can now filter out disks and temp sensors by name via config.
2020-09-02bug: fix being able to click widgets when dd-dialog was open (#219)Clement Tsang
Fixes a bug where you could click on a widget when dd's dialog was open.
2020-08-31refactor: Update error messages w/ anyhow and thiserror (#216)Clement Tsang
Refactoring and updating of error messages + tests to be more useful.
2020-08-29feature: Allow Ctrl-F and / to work in sort (#212)Clement Tsang
Fixes a bug, and also allows `Ctrl-F` and `/` to work in the sort widget.
2020-08-29feature: Add mouse click support for moving between widgets (#208)Clement Tsang
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-28feature: Adaptive network widget (#206)Clement Tsang
Allows the network widget graph to grow/shrink with current data, rather than using a static size.
2020-08-26bug: fix searching by command being broken (#204)Clement Tsang
Fixes searching by command name being broken.
2020-08-25bug: fix grouping being broken after refactor (#201)0.4.6Clement Tsang
Fixes grouping not working properly after some refactoring done in 0.4.6.
2020-08-25uptick: 0.4.6 (#200)Clement Tsang
2020-08-21refactor: remove kill command, use libcClement Tsang
Removes the kill command call and instead uses libc to manage killing processes.
2020-08-17feature: Add appox. total mem as an option for processes and basic memClement Tsang
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-16bug: Fix bug w/ parsing `/proc/{pid}/stats` Clement Tsang
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-16refactor: Revert tui upgrade to 0.10Clement Tsang
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-15feature: Allow sorting by any columnClement Tsang
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-13refactor: remove redundant newlinesClementTsang
2020-08-12change: Refactor dd drawing codeClementTsang
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-11deps: Update dependencies, drop MSRVClement Tsang
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-07feature: add full command to process widgetClement Tsang
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-07-06clippy: clippy error due to redundant conversionClementTsang
Fixes a redundant usize to usize conversion.
2020-05-19feature: add back states to unmerged processesClement Tsang
2020-05-18change: always highlight selected cpuClementTsang
2020-05-18refactor: reduce unchecked type conversions to usizeClement Tsang
2020-05-16change: remove slash, change scroll behaviour on cpuClement Tsang
- 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-13bug: add extra check for process cpu value to be >= 0ClementTsang
2020-05-11refactor: remove redundant empty checks in graphsClement Tsang
Now that the fix for empty data is patched in tui, these checks are redundant.
2020-05-10refactor: re-enable tui-rs linear interpolationClementTsang
2020-05-09change: hide table gap if widget height is smallClement Tsang
2020-05-09change: hide time legend if window gets too smallClementTsang
2020-05-07refactor: avoid using max checks, use saturating_sub insteadClement Tsang
2020-05-04chore: support MSRV of 1.40.0ClementTsang
2020-05-04change: separated search and process widgets againClementTsang