add keybinding 'f' to search nodes

master
skanehira 5 years ago
parent 18ed987be1
commit d5a9b6c749

@ -49,7 +49,7 @@ $ tson -url http://gorilla/likes/json
| e | edit json with $EDITOR |
| q | quit tson |
| Enter | edit node |
| / | search nodes |
| / or f | search nodes |
| ? | show helps |
| space | expand/collaspe children nodes |
| ctrl-j | move to next parent node |

@ -41,7 +41,7 @@ var (
editNodes = fmt.Sprintf(RedColor, "e", " edit json with $EDITOR")
quitTson = fmt.Sprintf(RedColor, "q", " quit tson")
editNodeValue = fmt.Sprintf(RedColor, "Enter", "edit current node")
searchNodes = fmt.Sprintf(RedColor, "/", " search nodes")
searchNodes = fmt.Sprintf(RedColor, "/ or f", " search nodes")
toggleExpandNodes = fmt.Sprintf(RedColor, "space", " expand/collaspe nodes")
moveNextParentNode = fmt.Sprintf(RedColor, "ctrl-j", "move to next parent node")
movePreParentNode = fmt.Sprintf(RedColor, "ctrl-k", "move to previous parent node")

@ -147,7 +147,7 @@ func (t *Tree) SetKeybindings(g *Gui) {
g.LoadJSON()
case 's':
g.SaveJSON()
case '/':
case '/', 'f':
g.Search()
case 'a':
g.AddNode()

Loading…
Cancel
Save