summaryrefslogtreecommitdiffstats
path: root/src/constants.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs59
1 files changed, 31 insertions, 28 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 09d20d60..0a228a80 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -88,7 +88,7 @@ pub const PROCESS_HELP_TEXT: [&str; 8] = [
"Ctrl-f, / Open process search widget",
];
-pub const SEARCH_HELP_TEXT: [&str; 40] = [
+pub const SEARCH_HELP_TEXT: [&str; 43] = [
"4 - Process search widget\n",
"Tab Toggle between searching for PID and name\n",
"Esc Close the search widget (retains the filter)\n",
@@ -102,33 +102,36 @@ pub const SEARCH_HELP_TEXT: [&str; 40] = [
"Alt-r/F3 Toggle using regex\n",
"Left, Alt-h Move cursor left\n",
"Right, Alt-l Move cursor right\n",
- "Search keywords\n",
- "pid\n",
- "cpu\n",
- "mem\n",
- "pid\n",
- "read\n",
- "write\n",
- "tread\n",
- "twrite\n\n",
- "\nComparison operators\n",
- "=\n",
- ">\n",
- "<\n",
- ">=\n",
- "<=\n",
- "\nLogical operators\n",
- "and/&&\n",
- "or/||\n",
- "\nSupported units\n",
- "B\n",
- "KB\n",
- "MB\n",
- "TB\n",
- "KiB\n",
- "MiB\n",
- "GiB\n",
- "TiB\n",
+ "\n",
+ "Search keywords:\n",
+ "pid ex: pid 825\n",
+ "cpu ex: cpu > 4.2\n",
+ "mem ex: mem < 4.2\n",
+ "read ex: read >= 1 b\n",
+ "write ex: write <= 1 tb\n",
+ "tread ex: tread = 1\n",
+ "twrite ex: twrite = 1\n",
+ "\n",
+ "Comparison operators:\n",
+ "= ex: cpu = 1\n",
+ "> ex: cpu > 1\n",
+ "< ex: cpu < 1\n",
+ ">= ex: cpu >= 1\n",
+ "<= ex: cpu <= 1\n",
+ "\n",
+ "Logical operators:\n",
+ "and/&& ex: btm and cpu > 1 and mem > 1\n",
+ "or/|| ex: btm or firefox\n",
+ "\n",
+ "Supported units:\n",
+ "B ex: read > 1 b\n",
+ "KB ex: read > 1 kb\n",
+ "MB ex: read > 1 mb\n",
+ "TB ex: read > 1 tb\n",
+ "KiB ex: read > 1 kib\n",
+ "MiB ex: read > 1 mib\n",
+ "GiB ex: read > 1 gib\n",
+ "TiB ex: read > 1 tib",
];
pub const BATTERY_HELP_TEXT: [&str; 3] = [