mirror of
https://github.com/aristocratos/btop.git
synced 2026-06-11 09:14:22 -04:00
Reassign tree-children-toggle keybind
the tree-children-toggle feature introduced in f8b4217 from PR #1274
was using the "u" key as a binding.
This conflicts with pause using the "u" key now.
Since the "u" key was chosen without any real reason for the
tree-children-toggle feature. It will be changed to "C" and
"u" can safely be used for pause.
This commit is contained in:
@@ -451,12 +451,12 @@ namespace Input {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (is_in(key, "+", "-", "space", "u") and Config::getB("proc_tree") and Config::getI("proc_selected") > 0) {
|
||||
else if (is_in(key, "+", "-", "space", "C") and Config::getB("proc_tree") and Config::getI("proc_selected") > 0) {
|
||||
atomic_wait(Runner::active);
|
||||
auto& pid = Config::getI("selected_pid");
|
||||
if (key == "+" or key == "space") Proc::expand = pid;
|
||||
if (key == "-" or key == "space") Proc::collapse = pid;
|
||||
if (key == "u") Proc::toggle_children = pid;
|
||||
if (key == "C") Proc::toggle_children = pid;
|
||||
no_update = false;
|
||||
}
|
||||
else if (is_in(key, "t", kill_key) and (Config::getB("show_detailed") or Config::getI("selected_pid") > 0)) {
|
||||
|
||||
Reference in New Issue
Block a user