Brutuski / tmux-ticker

A Tmux plugin to monitor various indexes and stock prices.
MIT License
37 stars 9 forks source link

Get value of ticker_stock_change to use for conditional style #5

Closed rphuber closed 1 year ago

rphuber commented 1 year ago

I'd love to have a way to get the value of the change to find out if it's positive or negative so I could use the info to style the ticker price color. Is this possible currently? I have tried using #{?ticker_stock_price>0} but that doesn't seem to actually work. is there a variable that I can use to determine the change direction? Thanks for the great plugin

rphuber commented 1 year ago

I figured out a way to do this. Is this something you would be interested in me adding to the package?

Brutuski commented 1 year ago

Thanks for the great plugin

Thank you so much for the kind words.

I figured out a way to do this. Is this something you would be interested in me adding to the package?

Sure thing man, go ahead and submit a PR. I will merge it asap. If you can though, do post an image or 2 showing the functionality.

rphuber commented 1 year ago

Let me know your thoughts on this approach.