summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-08-22 12:38:13 -0700
committerGitHub <noreply@github.com>2020-08-22 15:38:13 -0400
commit3394b9ee6699195c400d152cf82cd9ab92585164 (patch)
tree9ec9dfe2910b5d3f64dd183a774ae6407c44d475 /README.md
parentc82f4d40b40649ae53037701fadc2f5c1be9e901 (diff)
feature: allow searching by state, add more keyword variants
Allows searching by state (`state = sleep`), and adds more keyword variants for searching: `cpu%`, `mem%`, `r/s`, `w/s`, matching the columns.
Diffstat (limited to 'README.md')
-rw-r--r--README.md28
1 files changed, 14 insertions, 14 deletions
diff --git a/README.md b/README.md
index 8b75f21e..a8636d68 100644
--- a/README.md
+++ b/README.md
@@ -275,20 +275,20 @@ Run using `btm`.
![quote searching](assets/quote_search.png)
-#### Supported keywords
-
-Searching without a keyword will search by process or command name (depends on what column is being shown by the current process widget).
-
-| Keywords | Example | Description |
-| -------- | ------------------ | ------------------------------------------------------------------------------------------------- |
-| `pid` | `pid: 1044` | Matches by PID; supports regex and requiring matching the entire PID |
-| `cpu` | `cpu > 0.5` | Matches the condition for the CPU column; supports comparison operators |
-| `memb` | `memb > 1000 b` | Matches the condition for the memory column in terms of bytes; supports comparison operators |
-| `mem` | `mem < 0.5` | Matches the condition for the memory column in terms of percent; supports comparison operators |
-| `read` | `read = 1 mb` | Matches the condition for the read/s column in terms of bytes; supports comparison operators |
-| `write` | `write >= 1 kb` | Matches the condition for the write/s column in terms of bytes; supports comparison operators |
-| `tread` | `tread <= 1024 gb` | Matches the condition for the total read column in terms of bytes; supports comparison operators |
-| `twrite` | `twrite > 1024 tb` | Matches the condition for the total write column in terms of bytes; supports comparison operators |
+#### Supported search types
+
+| Keywords | Example | Description |
+| ------------------- | ------------------ | ------------------------------------------------------------------------------- |
+| | `btm` | Matches by process or command name; supports regex |
+| `pid` | `pid=1044` | Matches by PID; supports regex |
+| `cpu`, `cpu%` | `cpu > 0.5` | Matches the CPU column; supports comparison operators |
+| `memb` | `memb > 1000 b` | Matches the memory column in terms of bytes; supports comparison operators |
+| `mem`, `mem%` | `mem < 0.5` | Matches the memory column in terms of percent; supports comparison operators |
+| `read`, `r/s` | `read = 1 mb` | Matches the read/s column in terms of bytes; supports comparison operators |
+| `write`, `w/s` | `write >= 1 kb` | Matches the write/s column in terms of bytes; supports comparison operators |
+| `tread`, `t.read` | `tread <= 1024 gb` | Matches he total read column in terms of bytes; supports comparison operators |
+| `twrite`, `t.write` | `twrite > 1024 tb` | Matches the total write column in terms of bytes; supports comparison operators |
+| `state` | `state=running` | Matches by state; supports regex |
#### Supported comparison operators