Preview

wrgl preview

Shows a commit's content in an interactive table.

wrgl preview COMMIT [flags]

To output to a CSV file, use command wrgl export instead.

Flags

-h, --help

help for preview

Inherited flags

--badger-log

set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")

--cpuprofile

write cpu profile to file

--debug-file

output debug logs to a file

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.

Examples

# preview the head commit of a branch
wrgl preview my-branch

# preview an arbitrary commit by specifying the full sum
wrgl preview 1a2ed6248c7243cdaaecb98ac12213a7

Preview tool

When you run wrgl preview, the commit's content is displayed with the preview tool.

Preview tool

Preview tool

UI elements

From top to bottom:

  • Commit sum and table dimensions
  • The preview table
  • Keyboard shortcuts

Interactions

You can select and scroll with mouse/trackpad. The following keyboard shortcuts are also provided:

  • arrow keys: Navigate inside the preview table.
  • g: Scroll to begin of table.
  • Shift+g: Scroll to end of table.
  • h: Navigate left one cell.
  • j: Navigate down one cell.
  • k: Navigate up one cell.
  • l: Navigate right one cell.