mirror of
https://github.com/skanehira/tson
synced 2024-11-15 12:13:04 +00:00
update readme and help
This commit is contained in:
parent
f170037d81
commit
d79b6e0a9d
52
README.md
52
README.md
@ -29,32 +29,32 @@ $ tson -url http://gorilla/likes/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 value nodes |
|
||||
| l | expand current node |
|
||||
| L | expand all nodes |
|
||||
| r | read from file |
|
||||
| s | save to file |
|
||||
| a | add new node |
|
||||
| A | add new value |
|
||||
| d | clear children nodes |
|
||||
| e | edit json with $EDITOR(only when use --url) |
|
||||
| q | quit tson |
|
||||
| Enter | edit node |
|
||||
| / | search nodes |
|
||||
| ? | show helps |
|
||||
| space | expand/collaspe children nodes |
|
||||
| ctrl-j | move to next parent node |
|
||||
| ctrk-k | move to next previous node |
|
||||
| ctrl-c | quit tson |
|
||||
| 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 value nodes |
|
||||
| l | expand current node |
|
||||
| L | expand all nodes |
|
||||
| r | read from file |
|
||||
| s | save to file |
|
||||
| a | add new node |
|
||||
| A | add new value |
|
||||
| d | clear children nodes |
|
||||
| e | edit json with $EDITOR(only Linux) |
|
||||
| q | quit tson |
|
||||
| Enter | edit node |
|
||||
| / | search nodes |
|
||||
| ? | show helps |
|
||||
| space | expand/collaspe children nodes |
|
||||
| ctrl-j | move to next parent node |
|
||||
| ctrk-k | move to next previous node |
|
||||
| ctrl-c | quit tson |
|
||||
|
||||
### help
|
||||
| key | description |
|
||||
|
@ -38,7 +38,7 @@ var (
|
||||
addNewNode = fmt.Sprintf(RedColor, "a", " add new node")
|
||||
addNewValue = fmt.Sprintf(RedColor, "A", " add new value")
|
||||
clearChildrenNodes = fmt.Sprintf(RedColor, "d", " clear children nodes")
|
||||
editNodes = fmt.Sprintf(RedColor, "e", " edit json with $EDITOR(only when use --url)")
|
||||
editNodes = fmt.Sprintf(RedColor, "e", " edit json with $EDITOR(only linux)")
|
||||
quitTson = fmt.Sprintf(RedColor, "q", " quit tson")
|
||||
editNodeValue = fmt.Sprintf(RedColor, "Enter", "edit current node")
|
||||
searchNodes = fmt.Sprintf(RedColor, "/", " search nodes")
|
||||
|
Loading…
Reference in New Issue
Block a user