pull/15/head
Miguel Mota 6 years ago
parent b730f5e01c
commit dea43e939d

@ -12,7 +12,7 @@ The interface is inspired by [`htop`](https://en.wikipedia.org/wiki/Htop) and sh
<img src="https://user-images.githubusercontent.com/168240/39320886-44a2142e-493a-11e8-82f7-561043512783.png" width="880" />
Yes, it's fast.
In action
<img src="https://user-images.githubusercontent.com/168240/39274530-2392ac42-4897-11e8-947a-a31bc45bd511.gif" width="880" />
@ -136,6 +136,7 @@ Key|Action
<kbd>Space</kbd>|Toggle coin as favorite
<kbd>Ctrl</kbd>+<kbd>c</kbd>|Alias to quit
<kbd>Ctrl</kbd>+<kbd>d</kbd>|Jump page down (vim inspired)
<kbd>Ctrl</kbd>+<kbd>f</kbd>|Search
<kbd>Ctrl</kbd>+<kbd>n</kbd>|Go to next page
<kbd>Ctrl</kbd>+<kbd>p</kbd>|Go to previous page
<kbd>Ctrl</kbd>+<kbd>r</kbd>|Force refresh data
@ -214,6 +215,7 @@ You can then configure the actions you want for each key:
c = "toggle_row_chart"
"ctrl+c" = "quit"
"ctrl+d" = "page_down"
"ctrl+f" = "open_search"
"ctrl+n" = "next_page"
"ctrl+p" = "previous_page"
"ctrl+r" = "refresh"
@ -363,6 +365,10 @@ Action|Description
- A: Try setting the environment variable `TERM=screen-256color`
- Q: Does cointop work inside an emacs shell?
- A: Yes, but it's slightly buggy.
## Development
### Snap

@ -113,6 +113,9 @@ func Run() {
}
ct.g = g
defer g.Close()
g.InputEsc = true
g.BgColor = gocui.ColorBlack
g.FgColor = gocui.ColorWhite
g.Mouse = true
g.Highlight = true
g.SetManagerFunc(ct.layout)

@ -15,6 +15,7 @@ func defaultShortcuts() map[string]string {
"space": "toggle_favorite",
"ctrl+c": "quit",
"ctrl+d": "page_down",
"ctrl+f": "open_search",
"ctrl+n": "next_page",
"ctrl+p": "previous_page",
"ctrl+r": "refresh",

Loading…
Cancel
Save