dattanchu / pymodoro

Pymodoro is the Pomodoro for Xmobar or Dzen. It runs and it tells you where you are in your current pomodoro session.
MIT License
65 stars 18 forks source link

Add expected/finished number of Pomodoros by weekday #5

Open dominikmayer opened 13 years ago

dominikmayer commented 13 years ago

Problem: How do we know if Pomodoro was finished?

dominikmayer commented 13 years ago

One way would be to define a keybinding to delete a session file. So every not deleted session file would count as a finished Pomodoro.

dattanchu commented 13 years ago

This would grow the number of files in the same directory to be quite big in a short amount of time. To counter this we should put session files into sub folders based on month, day. e.g. Session files for today would be in the folder

pomodoro_folder/5/29/

This should be suffice for now.

dominikmayer commented 13 years ago

I think we don't even need this. Have a look at the Pomodoro Calendar I made: http://likeswater.com/pomodoro-calendar-2011. I was thinking about adding a simple counter to Xmobar. During the week I want to do at least eight Pomodoros per day. So while I'm doing the third one Xmobar could show something like:

P XXX·· 10 min [2/8]

or

P XXX·· 10 min [xx __]

On a Saturday it would change to:

P XXX·· 10 min [2/4] P XXX·· 10 min [xx__]

This could be stored in a simple configuration file. I'm looking into ConfigParser (http://docs.python.org/py3k/library/configparser.html). That would also be a good way to store the configuration in some kind of .pymodororc.

dattanchu commented 13 years ago

ini-style like that supported by ConfigParser looks good to me