-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to log the number of timers completed #1
Comments
I can't modify the code to write the number of pomodoros alongside the timer, because... this will not be the "Smallest emacs pomodoro timer (1 char)" that I promise in the title of this minor-mode. But I think that it's an interesting add on, and I've changed the popup that you see when you put your mouse on the timer character. Now you can see the number of completed pomodoros in the popup. If you really want to add a (ugly :-) number to this clean mode line minor-mode, It's a trivial change to redtick--propertize, something like the third line in this code: (defun redtick--propertize (bar bar-color)
"Propertize BAR with BAR-COLOR, help echo, and click action."
(propertize (format "%s.%s" redtick--completed-pomodoros bar)
'face `(:inherit mode-line :foreground ,bar-color)
'help-echo '(redtick--popup-message redtick--pomodoro-started-at
redtick--pomodoro-description)
'pointer 'hand
'local-map (make-mode-line-mouse-map 'mouse-1 'redtick))) Please tell us if this code works for you, and thanks for using this!! :-) |
Thanks for adding the number of poms completed to the popup, that's enough for me. Thanks again. On 03-Nov-2016, at 3:16 PM, ferfebles wrote:
|
Glad to help :-) |
First of all thanks for the great app.
I was wondering if you could say what will be the easiest way to update redtick, so that it shows the number of pomodairo cycles completed alongside the timer character ? Or does it have this functionality already?
The text was updated successfully, but these errors were encountered: