cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
3.98k stars 311 forks source link

Support mouse-click operations like htop does #223

Closed lyricnz closed 2 years ago

lyricnz commented 2 years ago

htop supports clicking on menu options and column headings with a mouse. cointop could do the same.

lyricnz commented 2 years ago

Example from gocui (which cointop uses) https://github.com/jroimartin/gocui/blob/master/_examples/mouse.go

There is some support for mouse already - clicking on a row within a table changes focus, and rolling the mouse wheel seems to act like a click. I can't find much code around this - will keep digging.

lyricnz commented 2 years ago

Added in #224

TODO:

lyricnz commented 2 years ago

Added: Support clicking on status bar: Help Search Convert Favorites Portfolio

lyricnz commented 2 years ago

Added support for PrevChartRange and NextChartRange. Fixed Favorites/Portfolio action. Added support for clicking in Currency Conversion screen.

lyricnz commented 2 years ago

The working PR for this also merged into the tcell PR #232

lyricnz commented 2 years ago

Fixed in #232