mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-07 13:54:44 +02:00
docs: more details about search
This commit is contained in:
parent
83a4a15cd5
commit
d1ef24165d
52
README.md
52
README.md
@ -238,11 +238,15 @@ Run using `btm`.
|
|||||||
|
|
||||||
### Process searching keywords
|
### 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
|
#### Supported keywords
|
||||||
|
|
||||||
| | | |
|
| Keywords | Example | Description |
|
||||||
| -------- | --------------- | ------------------------------------------------------------------------------- |
|
| -------- | --------------- | ------------------------------------------------------------------------------- |
|
||||||
| `pid` | `pid: 1044` | Matches by PID; supports regex and requiring matching the entire PID |
|
| `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 |
|
| `cpu` | `cpu > 0.5` | Matches the condition for the CPU column; supports comparison operators |
|
||||||
@ -254,36 +258,42 @@ Note none of the keywords are case sensitive. Furthermore, if you want to search
|
|||||||
|
|
||||||
#### Supported comparison operators
|
#### Supported comparison operators
|
||||||
|
|
||||||
| | |
|
| Keywords | Description |
|
||||||
| ---- | -------------------------------------------------------------- |
|
| -------- | -------------------------------------------------------------- |
|
||||||
| `=` | Checks if the values are equal |
|
| `=` | Checks if the values are equal |
|
||||||
| `>` | Checks if the left value is strictly greater than the right |
|
| `>` | Checks if the left value is strictly greater than the right |
|
||||||
| `<` | Checks if the left value is strictly less than the right |
|
| `<` | Checks if the left value is strictly less than the right |
|
||||||
| `>=` | Checks if the left value is greater than or equal to the right |
|
| `>=` | Checks if the left value is greater than or equal to the right |
|
||||||
| `<=` | Checks if the left value is less than or equal to the right |
|
| `<=` | Checks if the left value is less than or equal to the right |
|
||||||
|
|
||||||
#### Supported logical operators
|
#### Supported logical operators
|
||||||
|
|
||||||
Note that the `and` operator takes precedence over the `or` operator.
|
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 |
|
| `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 |
|
| `or, \|\|` | `<CONDITION 1> or/\|\| <CONDITION 2>` | Requires at least one condition to be true to match |
|
||||||
|
|
||||||
#### Supported units
|
#### Supported units
|
||||||
|
|
||||||
| | |
|
| Keywords | Description |
|
||||||
| ----- | --------- |
|
| -------- | ----------- |
|
||||||
| `B` | Bytes |
|
| `B` | Bytes |
|
||||||
| `KB` | Kilobytes |
|
| `KB` | Kilobytes |
|
||||||
| `MB` | Megabytes |
|
| `MB` | Megabytes |
|
||||||
| `GB` | Gigabytes |
|
| `GB` | Gigabytes |
|
||||||
| `TB` | Terabytes |
|
| `TB` | Terabytes |
|
||||||
| `KiB` | Kibibytes |
|
| `KiB` | Kibibytes |
|
||||||
| `MiB` | Mebibytes |
|
| `MiB` | Mebibytes |
|
||||||
| `GiB` | Gibibytes |
|
| `GiB` | Gibibytes |
|
||||||
| `TiB` | Tebibytes |
|
| `TiB` | Tebibytes |
|
||||||
|
|
||||||
|
#### Other syntax
|
||||||
|
|
||||||
|
| Keywords | Usage | Description |
|
||||||
|
| -------- | ---------------------------------------------------- | -------------------------- |
|
||||||
|
| `()` | `(<CONDITION 1> AND <CONDITION 2>) OR <CONDITION 3>` | Group together a condition |
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
BIN
assets/quote_search.png
Normal file
BIN
assets/quote_search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 226 KiB |
Loading…
x
Reference in New Issue
Block a user