From 6fddc6eec072dd836f3ab4b853e7fce1b7d3ec36 Mon Sep 17 00:00:00 2001 From: skanehira Date: Thu, 31 Oct 2019 12:20:55 +0900 Subject: [PATCH] update README --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 484fd22..16929d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,38 @@ # tson -tson is JSON viewer written in Go. +`tson` is JSON viewer written in Go. +This tool displays JSON as a tree and you can search and edit key or values. + +![](https://i.imgur.com/tBGLEsT.gif) + +## Installtion +```sh +$ git clone https://github.com/skanehira/tson +$ cd && go install +``` + +## Usage +```sh +$ tson < test.json +``` + +## keybinding +### json tree + +| key | description | +|--------|---------------------| +| j | move down | +| k | move up | +| g | move to the top | +| G | move to the bottom | +| ctrl-f | page up | +| ctrl-b | page down | +| h | hide current node | +| H | collaspe all nodes | +| l | expand current node | +| L | expand all nodes | +| r | read from file | +| Enter | edit node | +| / | search nodes | + +# Author +skanehira