aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorChandra Kiran G <chandra.kiran@cai-solutions.com>2023-09-29 18:53:09 +0530
committerGitHub <noreply@github.com>2023-09-29 14:23:09 +0100
commit504400673f7cd3c958bfe110aa788aa935059975 (patch)
treeb228879471a1a6bc1844e66136c7e9b57d186251 /docs
parentFix support template (diff)
downloadatuin-504400673f7cd3c958bfe110aa788aa935059975.zip
add --reverse to history list (#1252)
* wip: add --reverse to history list * fix: remove print_list being called twice when reverse=true * chore: update documentation * feat: Avoid unneeded reverse by iterate forward or backward instead * feat: Make sure to only iterate once and avoid unneeded reverse call * feat: It used to be reverse by default. So make it default true here to be backwards compatible * fix clap --------- Co-authored-by: Dieter Eickstädt <eickstaedt@deicon.de>
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/commands/list.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/docs/commands/list.md b/docs/docs/commands/list.md
index c48d9d0a..4d4f2a97 100644
--- a/docs/docs/commands/list.md
+++ b/docs/docs/commands/list.md
@@ -11,6 +11,7 @@ title: Listing History
| `--session`/`-s` | Enable listing history for the current session only (default: false) |
| `--human` | Use human-readable formatting for the timestamp and duration (default: false) |
| `--cmd-only` | Show only the text of the command (default: false) |
+| `--reverse` | Reverse the order of the output (default: false) |
| `--format` | Specify the formatting of a command (see below) |
## Format