Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Introduction
  • Installation
    • Default Shell
  • Getting Started
    • Quick Tour
    • Moving Around the System
    • Thinking in Nu
    • Nushell Cheat Sheet
  • Nu Fundamentals
    • Types of Data
    • Loading Data
    • Pipelines
    • Working with Strings
    • Working with Lists
    • Working with Records
    • Working with Tables
    • Navigating and Accessing Structured Data
    • Special Variables
  • Programming in Nu
    • Custom Commands
    • Aliases
    • Operators
    • Variables
    • Control Flow
    • Scripts
    • Modules
      • Using Modules
      • Creating Modules
    • Overlays
    • Sorting
    • Testing your Nushell Code
    • Best Practices
  • Nu as a Shell
    • Configuration
    • Environment
    • Stdout, Stderr, and Exit Codes
    • Running System (External) Commands
    • How to Configure 3rd Party Prompts
    • Directory Stack
    • Reedline, Nu's Line Editor
    • Custom Completions
    • Externs
    • Coloring and Theming in Nu
    • Hooks
    • Background Jobs
  • Coming to Nu
    • Coming from Bash
    • Coming from CMD.EXE
    • Nu map from other shells and domain specific languages
    • Nu Map from Imperative Languages
    • Nu Map from Functional Languages
    • Nushell operator map
  • Design Notes
    • How Nushell Code Gets Run
  • (Not So) Advanced
    • Standard Library (Preview)
    • Dataframes
    • Metadata
    • Creating Your Own Errors
    • Parallelism
    • Plugins
    • explore

explore

Explore is a table pager, just like less but for table structured data.

Signature

> explore --head --index --reverse --peek

Parameters

  • --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

ls | explore -i

explore-ls-png

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. 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>.

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.nu.

Examples

Peeking a Value

$nu | explore --peek

explore-peek-gif

:try Command

There's an interactive environment which you can use to navigate through data using nu.

explore-try-gif

Keeping the chosen value by $nu

Remember you can combine it with --peek.

explore-try-nu-gif

Edit this page on GitHub
Contributors: Maxim Zhiburt, fdncred, Justin Ma, amtoine, Hofer-Julian, Máté FARKAS, Stefan Holderbach, Mate Farkas, Viktor Poletansky, Filipp Samoilov, paulie4, hank20010209
Prev
Plugins