From b9cd94029aba0acaf11e32ebc1b19ef64e0d2b18 Mon Sep 17 00:00:00 2001 From: paulie4 <203125+paulie4@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:30:43 -0500 Subject: [PATCH 1/2] `explore`: cleanup params/flags and add more keybindings --- book/explore.md | 10 +++++----- commands/docs/explore.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/book/explore.md b/book/explore.md index 10252b3ac79..ca2f8a7f033 100644 --- a/book/explore.md +++ b/book/explore.md @@ -8,10 +8,10 @@ Explore is a table pager, just like `less` but for table structured data. ### Parameters -- `--head {boolean}`: turn off column headers -- `--index`: show row indexes (by default it's not showed) -- `--reverse`: start from the last row -- `--peek`: returns a last used value, so it can be used in next pipelines + - `--head {bool}`: Show or hide column headers (default true) + - `--index, -i`: Show row indexes when viewing a list + - `--tail, -t`: Start with the viewport scrolled to the bottom + - `--peek, -p`: When quitting, output the value of the cell the cursor was on ## Get Started @@ -23,7 +23,7 @@ ls | explore -i So the main point of [`explore`](/commands/docs/explore.md) is `:table` (Which you see on the above screenshot). -You can interact with it via ``, ``, ``, `` _arrow keys_. +You can interact with it via ``, ``, ``, `` _arrow keys_. It also supports the `Vim` keybindings ``, ``, ``, and ``, `` and ``, and it supports the `Emacs` keybindings ``, ``, ``, and ``. You can inspect a underlying values by entering into cursor mode. You can press either `` or `` to do so. Then using _arrow keys_ you can choose a necessary cell. diff --git a/commands/docs/explore.md b/commands/docs/explore.md index d1b4a422e5b..04ae758c730 100644 --- a/commands/docs/explore.md +++ b/commands/docs/explore.md @@ -20,7 +20,7 @@ usage: | ## Flags - - `--head, - {bool}`: Show or hide column headers (default true) + - `--head {bool}`: Show or hide column headers (default true) - `--index, -i`: Show row indexes when viewing a list - `--tail, -t`: Start with the viewport scrolled to the bottom - `--peek, -p`: When quitting, output the value of the cell the cursor was on From 13a758b947209491de74156e21872693dddcbe5c Mon Sep 17 00:00:00 2001 From: paulie4 <203125+paulie4@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:16:13 -0500 Subject: [PATCH 2/2] `commands\docs\explore.md` revert change --- commands/docs/explore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/docs/explore.md b/commands/docs/explore.md index 04ae758c730..d1b4a422e5b 100644 --- a/commands/docs/explore.md +++ b/commands/docs/explore.md @@ -20,7 +20,7 @@ usage: | ## Flags - - `--head {bool}`: Show or hide column headers (default true) + - `--head, - {bool}`: Show or hide column headers (default true) - `--index, -i`: Show row indexes when viewing a list - `--tail, -t`: Start with the viewport scrolled to the bottom - `--peek, -p`: When quitting, output the value of the cell the cursor was on