Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Updated install instructions, added a shortcut #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
![](img/jsonui.gif)

## Install
`go get -u github.com/gulyasm/jsonui`
`go install github.com/gulyasm/jsonui@latest`
Binary will be installed into `${GOPATH}/bin`, where `GOPATH` defaults to `~/go`. Make sure the bin directory is in your `$PATH`.

## Binary Releases
[Binary releases are availabe](https://github.com/gulyasm/jsonui/releases)
Expand Down
6 changes: 5 additions & 1 deletion jsonui.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ func main() {
if err := g.SetKeybinding(treeView, 'e', gocui.ModNone, toggleExpand); err != nil {
log.Panicln(err)
}
if err := g.SetKeybinding(treeView, 'c', gocui.ModNone, toggleExpand); err != nil {
log.Panicln(err)
}
if err := g.SetKeybinding(treeView, 'E', gocui.ModNone, expandAll); err != nil {
log.Panicln(err)
}
Expand Down Expand Up @@ -147,7 +150,8 @@ j/ArrowDown ═ Move a line down
k/ArrowUp ═ Move a line up
J/PageDown ═ Move 15 line down
K/PageUp ═ Move 15 line up
e ═ Toggle expend/collapse node
e ═ Toggle expand/collapse node
c ═ Toggle expand/collapse node
E ═ Expand all nodes
C ═ Collapse all nodes
q/ctrl+c ═ Exit
Expand Down