zk-phi / symon

Tiny graphical system monitor
289 stars 26 forks source link

Add an option to center the display in the minibuffer #21

Closed pierre-lecocq closed 7 years ago

pierre-lecocq commented 9 years ago

Hi @zk-phi ,

I added an option to center the display of the minibuffer when symon displays its graphs. I don't know if you wish to integrate this kind of feature, but it was a request on reddit. Up to you to merge it or not, of course.

Next, I'll deal with the Fish shell issue on Mac OS X.

Thanks !

zk-phi commented 9 years ago

this implementation seems unsafe since minibuffer can be updated without calling symon--display-end. for example :

(progn (run-with-timer 0 nil 'symon-display)
       (run-with-timer 1 nil (lambda () (message "foo"))))

I think prepending a whitespace character with 'display property (see manual) is better than adding margin to the minibuffer window.

it also assumes width of symon-display 80, which should be computed from symon-monitors (or be configurable).

zk-phi commented 7 years ago

closing.