domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
235 stars 25 forks source link

Add current org mode clock task segment #53

Closed alexmurray closed 7 years ago

spraharsh commented 7 years ago

I don't really have the time to make the changes myself for some time but I would really like to see [time-elapsed/effort-estimate] like in powerline.

I'll be a bit busy till december, so if it's not implemented I can make a pull request then

domtronn commented 7 years ago

Sorry for the huge delay... I've had a lot less time recently with new job and moving cities etc...

I'm going to look through this branch now and hopefully get it merged in today :) I don't know a lot about org mode clock task, so if you could provide screenshots of what it's supposed to look like or any other information to recreate the desired behaviour, that would be really useful.


@spraharsh I'll have a look through powerline's code and see if I can easily port that as well 👍

domtronn commented 7 years ago

@alexmurray Looks good 👍

spraharsh commented 7 years ago

The idea behind org clock is to clock the amount of time that is spent on a task. An estimate for the amount of time expected can be made and compared against (called an effort estimate).

Powerline shows the [time spent/effort estimate] and If time exceeds the effort estimate highlights the timer in red Here's how it looks (there was an update to truncate the task name which I am not using) btsc

Here's how it looks in powerline when the task exceeds the time limit and otherwise thing2

thingy3

Vonfry commented 7 years ago

I think this pr has some error with old version orgmode or those who don't use org clock. Before I set with org clock, it has an error about this.

Error during redisplay: (eval (spaceline-ml-all-the-icons)) signaled (void-variable org-clock-current-task) [68 times]
domtronn commented 7 years ago

Should be fixed by #60