load keyboard shortcut bug fix

Former-commit-id: 1230bcf271165bde16571604e2cdb9c60287f736 [formerly 1230bcf271165bde16571604e2cdb9c60287f736 [formerly ae5dc9a410c17a97046ce508978d2320cf53c015 [formerly e5a728aeab711501d15a32f590ae679f92f9ea6f]]]
Former-commit-id: cfa82b20824bd0337a55afcca85c8d041c34d99c
Former-commit-id: 5e54e4862c44fd9f2ace789ced1e003ad02aa20e [formerly 059ef8ee7c2139e9aee90fe50b4504c2b091fc34]
Former-commit-id: 3ca29639e0228c58541649db6e5043b830998534
pull/15/head
Miguel Mota 6 years ago
parent 4489c3f06d
commit 3542f55705

@ -25,7 +25,7 @@
- Vim style keys
- Pagination
- 7 day charts
- Search by name/symbol
- Fuzzy Searching
- Custom key bindings
- Color coded
- Works on macOS, Linux, and Windows
@ -271,7 +271,7 @@ Action|Description
- Q: Does this work on the Raspberry Pi?
- A: Yes, cointop works on the Rasperry Pi?
- A: Yes, cointop works on the Rasperry Pi including the RPi Zero.
## License

@ -54,7 +54,10 @@ func Run() {
maxtablewidth: 175,
shortcutkeys: defaultShortcuts(),
}
_ = ct.setupConfig()
err := ct.setupConfig()
if err != nil {
log.Fatal(err)
}
g, err := gocui.NewGui(gocui.Output256)
if err != nil {
log.Fatalf("new gocui: %v", err)

@ -3,6 +3,7 @@ package cointop
import (
"bytes"
"fmt"
"log"
"os"
"os/user"
"strings"
@ -112,7 +113,8 @@ func (ct *Cointop) loadShortcutsFromConfig() error {
k = strings.ToLower(k)
v, ok := ifc.(string)
if ok {
if !actionsmap[k] {
log.Println(k, v)
if !actionsmap[v] {
continue
}
if ct.shortcutkeys[k] == "" {

Loading…
Cancel
Save