feature: User info in proc widget for Unix-based systems (#425)

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.
This commit is contained in:
Clement Tsang
2021-02-28 17:40:55 -05:00
committed by GitHub
parent c406d95699
commit 53d8bdae32
13 changed files with 265 additions and 48 deletions
+6
View File
@@ -86,6 +86,12 @@ impl From<std::str::Utf8Error> for BottomError {
}
}
impl From<std::string::FromUtf8Error> for BottomError {
fn from(err: std::string::FromUtf8Error) -> Self {
BottomError::ConversionError(err.to_string())
}
}
impl From<regex::Error> for BottomError {
fn from(err: regex::Error) -> Self {
// We only really want the last part of it... so we'll do it the ugly way: