From 83eeecb22bb4fe10fbf5639fb08e837b428f1017 Mon Sep 17 00:00:00 2001 From: ebignumber Date: Mon, 29 Jun 2026 13:05:07 -0400 Subject: [PATCH] feat: make '=' expand in tree view as well (#1735) Aligns the behavior of the '=' key with the '+' key in tree view as it already does for updating the refresh rate. Closes: https://github.com/aristocratos/btop/issues/1734 --- src/btop_input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/btop_input.cpp b/src/btop_input.cpp index 170c392..4c77b71 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -488,12 +488,12 @@ namespace Input { } Config::set("update_following", true); } - else if (is_in(key, "+", "-", "space", "C") and Config::getB("proc_tree")) { + else if (is_in(key, "+", "-", "space", "C", "=") and Config::getB("proc_tree")) { const bool is_following_detailed = Config::getB("follow_process") and Config::getI("followed_pid") == Config::getI("detailed_pid"); if (Config::getI("proc_selected") > 0 or is_following_detailed) { atomic_wait(Runner::active); auto& pid = is_following_detailed and Config::getI("proc_selected") == 0 ? Config::getI("followed_pid") : Config::getI("selected_pid"); - if (key == "+" or key == "space") Proc::expand = pid; + if (key == "+" or key == "space" or key == "=") Proc::expand = pid; if (key == "-" or key == "space") Proc::collapse = pid; if (key == "C") Proc::toggle_children = pid; no_update = false;