2
0
mirror of https://github.com/skanehira/tson synced 2024-11-15 12:13:04 +00:00
tson/README.md

43 lines
869 B
Markdown
Raw Normal View History

2019-10-28 09:23:49 +00:00
# tson
2019-10-31 03:20:55 +00:00
`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)
2019-10-31 04:59:16 +00:00
## Support OS
- Mac
- Linux
## Installation
2019-10-31 03:20:55 +00:00
```sh
$ git clone https://github.com/skanehira/tson
$ cd tson && go install
2019-10-31 03:20:55 +00:00
```
## Usage
```sh
$ tson < test.json
```
## Keybinding
### JSON tree
2019-10-31 03:20:55 +00:00
| 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