explore
Explore is a table pager, just like less but for
table structured data.
Signature
> explore --head --index --reverse --peek
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
Get Started
ls | explore -i
So the main point of
explore
is :table (Which you see on the above screenshot).
You can interact with it via <Left>,
<Right>, <Up>,
<Down> arrow keys.
You can inspect a underlying values by entering into cursor
mode. You can press either <i> or
<Enter> to do so. Then using
arrow keys you can choose a necessary cell. And
you'll be able to see it's underlying structure.
You can obtain more information about the various aspects of it
by :help.
Commands
explore
has a list of built in commands you can use. Commands are run
through pressing <:> and then a command name.
To find out the comprehensive list of commands you can type
:help.
Config
You can configure many things (including styles and colors), via
config. You can find an example configuration in
default-config.rsh.
Examples
Peeking a value
$rsh | explore --peek
:try command
There's an interactive environment which you can use to
navigate through data using rsh.
Keeping the chosen value by $rsh
Remember you can combine it with --peek.
:tweak command
The tweak command can be used to set config options
right inside. For example run
:tweak table.split_line red
Interactive configuration
explore -i
:config-show command
You can use :config-show to inspect currently used
config.