From d79b6e0a9d9929e9abacfaadb7c2bb7f2fed34f9 Mon Sep 17 00:00:00 2001 From: skanehira Date: Fri, 8 Nov 2019 09:27:31 +0900 Subject: [PATCH] update readme and help --- README.md | 52 ++++++++++++++++++++++++++-------------------------- gui/navi.go | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index a4398cb..f020b64 100644 --- a/README.md +++ b/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 | diff --git a/gui/navi.go b/gui/navi.go index 5729c32..1301f6f 100644 --- a/gui/navi.go +++ b/gui/navi.go @@ -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")