Skip to content

Commit b9cd940

Browse files
committed
explore: cleanup params/flags and add more keybindings
1 parent efb0a7a commit b9cd940

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

book/explore.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Explore is a table pager, just like `less` but for table structured data.
88

99
### Parameters
1010

11-
- `--head {boolean}`: turn off column headers
12-
- `--index`: show row indexes (by default it's not showed)
13-
- `--reverse`: start from the last row
14-
- `--peek`: returns a last used value, so it can be used in next pipelines
11+
- `--head {bool}`: Show or hide column headers (default true)
12+
- `--index, -i`: Show row indexes when viewing a list
13+
- `--tail, -t`: Start with the viewport scrolled to the bottom
14+
- `--peek, -p`: When quitting, output the value of the cell the cursor was on
1515

1616
## Get Started
1717

@@ -23,7 +23,7 @@ ls | explore -i
2323

2424
So the main point of [`explore`](/commands/docs/explore.md) is `:table` (Which you see on the above screenshot).
2525

26-
You can interact with it via `<Left>`, `<Right>`, `<Up>`, `<Down>` _arrow keys_.
26+
You can interact with it via `<Left>`, `<Right>`, `<Up>`, `<Down>` _arrow keys_. It also supports the `Vim` keybindings `<h>`, `<j>`, `<k>`, and `<l>`, `<Ctrl-f>` and `<Ctrl-b>`, and it supports the `Emacs` keybindings `<Ctrl-v>`, `<Alt-v>`, `<Ctrl-p>`, and `<Ctrl-n>`.
2727

2828
You can inspect a underlying values by entering into cursor mode. You can press either `<i>` or `<Enter>` to do so.
2929
Then using _arrow keys_ you can choose a necessary cell.

commands/docs/explore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ usage: |
2020

2121
## Flags
2222

23-
- `--head, - {bool}`: Show or hide column headers (default true)
23+
- `--head {bool}`: Show or hide column headers (default true)
2424
- `--index, -i`: Show row indexes when viewing a list
2525
- `--tail, -t`: Start with the viewport scrolled to the bottom
2626
- `--peek, -p`: When quitting, output the value of the cell the cursor was on

0 commit comments

Comments
 (0)