From cfe075e6493169cd95c044b95695df2579fbb679 Mon Sep 17 00:00:00 2001 From: Tim Strijdhorst Date: Fri, 23 May 2025 23:57:56 +0200 Subject: [PATCH] Make the disk filter description more clear (#1077) --- src/btop_config.cpp | 2 +- src/btop_menu.cpp | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/btop_config.cpp b/src/btop_config.cpp index 53328da..71b34a4 100644 --- a/src/btop_config.cpp +++ b/src/btop_config.cpp @@ -156,7 +156,7 @@ namespace Config { {"custom_cpu_name", "#* Custom cpu model name, empty string to disable."}, {"disks_filter", "#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace \" \".\n" - "#* Begin line with \"exclude=\" to change to exclude filter, otherwise defaults to \"most include\" filter. Example: disks_filter=\"exclude=/boot /home/user\"."}, + "#* Only disks matching the filter will be shown. Prepend exclude= to only show disks not matching the filter. Examples: disk_filter=\"/boot /home/user\", disks_filter=\"exclude=/boot /home/user\""}, {"mem_graphs", "#* Show graphs instead of meters for memory values."}, diff --git a/src/btop_menu.cpp b/src/btop_menu.cpp index e69bf85..5655802 100644 --- a/src/btop_menu.cpp +++ b/src/btop_menu.cpp @@ -657,12 +657,13 @@ namespace Menu { "Separate multiple values with", "whitespace \" \".", "", - "Begin line with \"exclude=\" to change to", - "exclude filter.", - "Otherwise defaults to \"most include\" filter.", + "Only disks matching the filter will be shown.", + "Prepend \033[3mexclude=\033[23m to only show disks ", + "not matching the filter.", "", - "Example:", - "\"exclude=/boot /home/user\""}, + "Examples:", + "/boot /home/user", + "exclude=/boot /home/user"}, {"zfs_arc_cached", "(Linux) Count ZFS ARC as cached memory.", "",