Age | Commit message (Collapse) | Author |
|
|
|
|
|
Another one on the chopping block. This also moves out the app
widget logic to a separate struct.
|
|
This should help make search scrolling more reliable larger Unicode characters like CJK/flag characters.
|
|
* bug: fixes marker settings being ignored while rendering time charts
* appease clippy
|
|
|
|
* refactor: add some disabled unstable fmt options
* run cargo +nightly fmt with group_imports
* separate out the cfg-specific imports for clarity
|
|
* refactor: remove redundant scroll direction enum
This was made redundant from the table refactor.
* add some todos/docs
* refactor: temp hack to pass in data on process
|
|
* refactor: move to new data table implementation
* more work towards refactor
* move disk and temp over, fix longstanding bug with disk and temp if removing the last value and selected
* work towards porting over CPU
work towards porting over CPU
fix typo
partially port over cpu, fix some potentially inefficient concat_string calls
more work towards cpu widget migration
some refactoring
* sortable data
sortable data
more refactoring
some sort refactoring
more refactoringgggg
column refactoring
renaming and reorganizing
more refactoring regarding column logic
add sort arrows again
* move over sort menu
* port over process
port over process
precommit
temp
temp two, remember to squash
work
fix broken ltr calculation and CPU hiding
add back row styling
temp
fix a bunch of issues, get proc working
more fixes around click
fix frozen issues
* fix dd process killing
* revert some of the persistent config changes from #257
* fix colouring for trees
* fix missing entries in tree
* keep columns if there is no data
* add and remove tests
* Fix ellipsis
|
|
A small refactor to move some state/component files around in terms of file structure and code location. Should have no effect on logic.
|
|
Bugs squashed:
- Incorrect column sizing for flex cases
- Case where the sort menu bounds were still existing despite being
hidden
- Proc widget not actually taking into account the calculated row widths
in some cases during data conversion.
|
|
|
|
|
|
A bunch of work towards also refactoring how the process widget
gathers and converts data.
|
|
|
|
Cleans up some drawing code and unifies all time graph drawing.
|
|
This is a simple bug fix that changes the behaviour of a scroll select
(and column select) to only update if the updated position is _within_
the bounds of the list (0 to the max index, inclusive). Prior to this,
all the implementations but the disk implementation would just bound the
change. This was both inconsistent with the disk scroll state, but also
jarring since this meant a user could click on seemingly empty space but
it would somehow click on the very last entry.
This change also unifies the scroll calculation function between all the
scroll select functions. Ideally we get rid of the intermediary
functions but that might require more refactoring than I want for this
fairly simple bug fix.
The column select scroll calculation was also changed to fit this
behaviour, but it does not use the same logic as the other scroll
states. What could be done in the future is a generic implementation for
direction (or maybe just "increment vs. decrement") to share it all.
|
|
When I was newer to Rust, I got the weird impression that you couldn't
add functionality to a struct outside of the defining file without using
a trait.
That's obviously not true, so it's high time I got rid of it and just
made it part of the impl of the class itself, rather than declaring a
trait and then exporting/importing it.
|
|
Remove some simple as casts that are easy to change to .into(), or easy to check.
|
|
|
|
|
|
Adds CI actions and documentation for RISC-V.
|
|
Adds users into the process widget (for Unix-based systems). This shows only in non-grouped modes, similar to state. Search is also supported.
In addition, a quick fix to prevent users from being in grouped mode when they tried to enter tree mode while grouped.
|
|
Major update is tui-rs from 0.13 to 0.14. This change allows us to update our tables to make them look nicer!
|
|
widget (#416)
Fixes grouped mode having different spacing than non-grouped mode.
|
|
Adds mouse support for sorting columns within the process widget. You can now click on the column header to sort (or invert the sort).
|
|
Ctrl-w deletes one word backwards from the current cursor location. Ctrl-h is just an alias for backspace.
|
|
Fixes another change breaking states from showing in processes.
|
|
Adds the option to enable an "out of" indicator for scrollable table widgets (using --show_table_scroll_position).
|
|
Switch from lazy_static to once_cell.
|
|
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.
|
|
Adds some default colour choices to choose from.
|
|
Minor refactor to remove redundant `as_ref()` calls.
|
|
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?
|
|
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.
|
|
Just a simple rename.
|
|
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.
|
|
Adds a tree process view to bottom.
Currently uses a pretty jank method of column width setting, should get fixed in #225.
|
|
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
|
|
Fixes grouping not working properly after some refactoring done in 0.4.6.
|
|
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.
|
|
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.
|
|
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).
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
|
|
|