Skip to content

danieledapo/jv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JV

JV is a simple JSON viewer that supports jq-like queries. Incidentally it works also as a basic viewer for plain text files.

asciicast

Features

  • To see the help page hit :h
  • To quit hit q and to quit any mode focusing the view hit ESC.
  • Basic navigation with , , , , PgUp, PgDown
  • Go to a given line and or column by entering command mode with : and then enter the line number and optionally : followed by the column. If you want to go to a given column of the current row just omit the line number before :. Valid examples: "1:20", ":20" and "1".
  • Use a jq-like query to quickly jump to an element of the JSON schema. First, enter query mode with # and then enter "/" separated object keys or array indices. Example queries: "#/", "#/array/23/name", "#/23".
  • Automatically go to reference under cursor by clicking enter.
  • Syntax highlighting.

Install

$ cargo install --git https://github.com/d-dorazio/jv
$ jv --help
$ jv hello.json
$ jv data.txt

Releases

No releases published

Packages

No packages published

Languages