diff --git a/README.md b/README.md index e4ca509..ff17792 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ - 7 day charts - Color coded - Custom key bindings +- Search by name or symbol - Works on macOS, Linux, and Windows #### Future releases @@ -133,6 +134,7 @@ Key|Action q|[q]uit $|Go to last page (vim style) ?|Show help| +/|Search| ## Config @@ -154,6 +156,7 @@ You can then configure the actions you want for each key: 2 = "sort_column_24h_change" 7 = "sort_column_7d_change" "?" = "help" + "/" = "open_search" G = "move_to_page_last_row" H = "move_to_page_visible_first_row" L = "move_to_page_visible_last_row" @@ -215,6 +218,7 @@ Action|Description `move_down`|Move one row down `next_page`|Go to next page `open_link`|Open row link +`open_search`|Open search field `page_down`|Move one row down `page_up`|Scroll one page up `previous_page`|Go to previous page @@ -264,6 +268,10 @@ Action|Description - A: The executable is only ~1.9MB in size. +- Q: How do I search? + + - A: The default key to open search is /. Type the search query after the `/` in the field and hit Enter. + ## Authors - [Miguel Mota](https://github.com/miguelmota) diff --git a/cointop/statusbar.go b/cointop/statusbar.go index f8e3eed..5cc0256 100644 --- a/cointop/statusbar.go +++ b/cointop/statusbar.go @@ -11,7 +11,7 @@ func (ct *Cointop) updateStatusbar(s string) { ct.statusbarview.Clear() currpage := ct.getCurrentPage() totalpages := ct.getTotalPages() - base := "[q]uit [?]help [c]hart" + base := "[q]uit [?]help [c]hart [/]search" fmt.Fprintln(ct.statusbarview, pad.Right(fmt.Sprintf("%v [← →]page %v/%v %s", base, currpage, totalpages, s), ct.maxtablewidth, " ")) }) }