mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-09-25 20:15:37 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user