mirror of
https://github.com/aristocratos/btop.git
synced 2026-06-11 09:14:22 -04:00
feat(proc): add E hotkey to collapse/expand all tree nodes
Pressing E in tree mode collapses all processes if any parent is currently expanded, or expands all if everything is already collapsed. This gives a quick per-application resource summary without having to manually toggle each node. Implemented across all platforms (Linux, macOS, FreeBSD, OpenBSD, NetBSD).
This commit is contained in:
@@ -346,6 +346,11 @@ namespace Input {
|
||||
no_update = false;
|
||||
Config::set("update_following", true);
|
||||
}
|
||||
else if (key == "E" and Config::getB("proc_tree")) {
|
||||
atomic_wait(Runner::active);
|
||||
Proc::collapse_all = 1;
|
||||
no_update = false;
|
||||
}
|
||||
else if (is_in(key, "u")) {
|
||||
Config::flip("pause_proc_list");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user