tmux-plugins / tmux-battery

Plug and play battery percentage and icon indicator for Tmux.
MIT License
503 stars 98 forks source link

Add support for OS X "attached" battery state #4

Closed m1foley closed 9 years ago

m1foley commented 9 years ago

Fixes #3.

It might deserve a screenshot as well, but I'll leave that up to you.

m1foley commented 9 years ago

I made this change because I'd prefer to know when my charging cable doesn't have a solid connection (happens more frequently than you'd expect on Macs). But it won't hurt my feelings if you close this PR because you prefer the old blank behavior ;)

bruno- commented 9 years ago

Thank you for the contribution sir!

if you close this PR because you prefer the old blank behavior ;)

No way, I really like this addition. I wasn't aware this state can happen when charging (although it did happen to me once). It's very useful to know when you think* your mac is charging, but in fact it's not* charging.

I do have one thing to ask - would you mind if I changed the default icon to :warning:? I feel that one would indicate more correctly there is something unexpected going on. Snail would, in this case indicate things are moving forward, but slowly (which I think is not the case here).

Anyway, you think that okay?

m1foley commented 9 years ago

Yes, that sounds good to me -- I agree with your preference now that I think about it some more.

FWIW, I went with :snail: because:

Here's why I'm changing my mind:

bruno- commented 9 years ago

Great, it's updated now!

m1foley commented 9 years ago

Maybe the alternate in the README should be changed from :neutral_face: to :confused: