iam4x / zsh-iterm-touchbar

Display feedback of terminal in the 🍏 Touchbar
MIT License
689 stars 75 forks source link

Only clear touchbar when required to remove flicker on update #25

Closed Flowm closed 6 years ago

Flowm commented 6 years ago

The previous logic cleared and readded all buttons sequentially after every command.

By updating the buttons and only clearing when required the touchbar doesn't flicker after every command, making it a lot less distracting.

iam4x commented 6 years ago

Thanks a lot @Flowm 👍