docs: more details about search
This commit is contained in:
parent
83a4a15cd5
commit
d1ef24165d
24
README.md
24
README.md
|
@ -238,11 +238,15 @@ Run using `btm`.
|
|||
|
||||
### Process searching keywords
|
||||
|
||||
Note none of the keywords are case sensitive. Furthermore, if you want to search a reserved keyword, surround the text in quotes - for example, `"And" or "Or"` would be a valid search.
|
||||
- Note none of the keywords are case sensitive.
|
||||
- Use brackets to logically group together parts of the search.
|
||||
- Furthermore, if you want to search a reserved keyword, surround the text in quotes - for example, `"or" or "(sd-pam)"` would be a valid search:
|
||||
|
||||

|
||||
|
||||
#### Supported keywords
|
||||
|
||||
| | | |
|
||||
| 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 |
|
||||
|
@ -254,8 +258,8 @@ Note none of the keywords are case sensitive. Furthermore, if you want to search
|
|||
|
||||
#### Supported comparison operators
|
||||
|
||||
| | |
|
||||
| ---- | -------------------------------------------------------------- |
|
||||
| Keywords | Description |
|
||||
| -------- | -------------------------------------------------------------- |
|
||||
| `=` | Checks if the values are equal |
|
||||
| `>` | Checks if the left value is strictly greater than the right |
|
||||
| `<` | Checks if the left value is strictly less than the right |
|
||||
|
@ -266,15 +270,15 @@ Note none of the keywords are case sensitive. Furthermore, if you want to search
|
|||
|
||||
Note that the `and` operator takes precedence over the `or` operator.
|
||||
|
||||
| | | |
|
||||
| Keywords | Usage | Description |
|
||||
| ------------------ | -------------------------------------------- | --------------------------------------------------- |
|
||||
| `and, &&, <Space>` | `<CONDITION 1> and/&&/<Space> <CONDITION 2>` | Requires both conditions to be true to match |
|
||||
| `or, \|\|` | `<CONDITION 1> or/\|\| <CONDITION 2>` | Requires at least one condition to be true to match |
|
||||
|
||||
#### Supported units
|
||||
|
||||
| | |
|
||||
| ----- | --------- |
|
||||
| Keywords | Description |
|
||||
| -------- | ----------- |
|
||||
| `B` | Bytes |
|
||||
| `KB` | Kilobytes |
|
||||
| `MB` | Megabytes |
|
||||
|
@ -285,6 +289,12 @@ Note that the `and` operator takes precedence over the `or` operator.
|
|||
| `GiB` | Gibibytes |
|
||||
| `TiB` | Tebibytes |
|
||||
|
||||
#### Other syntax
|
||||
|
||||
| Keywords | Usage | Description |
|
||||
| -------- | ---------------------------------------------------- | -------------------------- |
|
||||
| `()` | `(<CONDITION 1> AND <CONDITION 2>) OR <CONDITION 3>` | Group together a condition |
|
||||
|
||||
## Features
|
||||
|
||||
As yet _another_ process/system visualization and management application, bottom supports the typical features:
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 226 KiB |
Loading…
Reference in New Issue