summaryrefslogtreecommitdiffstats
path: root/docs/docs/commands/search.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docs/commands/search.md')
-rw-r--r--docs/docs/commands/search.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/docs/commands/search.md b/docs/docs/commands/search.md
index 21074be9..eacb22e2 100644
--- a/docs/docs/commands/search.md
+++ b/docs/docs/commands/search.md
@@ -21,6 +21,7 @@ appended with a wildcard).
| `--human` | Use human-readable formatting for the timestamp and duration (default: false) |
| `--limit` | Limit the number of results (default: none) |
| `--offset` | Offset from the start of the results (default: none) |
+| `--delete` | Delete history matching this query |
## Examples
@@ -40,6 +41,9 @@ atuin search --exclude-exit 0 --before 01/04/2021 --cwd .
# Search for all commands, beginning with cargo, that exited successfully, and were ran after yesterday at 3pm
atuin search --exit 0 --after "yesterday 3pm" cargo
+# Delete all commands, beginning with cargo, that exited successfully, and were ran after yesterday at 3pm
+atuin search --delete --exit 0 --after "yesterday 3pm" cargo
+
# Search for a command beginning with cargo, return exactly one result.
atuin search --limit 1 cargo