RSS

 
WinEdt Macro Library  | WinEdt  next macro

worklog

If you don't run at least WinEdt 5.2 either get it, or get the old version of worklog.

Description

The purpose of this package of macros is to keep track of your working hours and minutes with WinEdt.

It gets the time when you open WinEdt and when you close it. It can also log the project you've been working on.
This information is written into a table (the worklog): One file for every month, and another one containing the summary.
At the end of each month, it calculates the average working hours per day and week and the hours and minutes you've been working on the different subjects.

Menu Entry

To append a menu entry for the worklog package, go to Options | Menu Setup..., click "Append..." (the rightmost button) and choose the file worklog.dat from the worklog folder. This will append a submenu to the Tools Menu. The installation macro will do this for you, if you want.
The menu contains of he following commands:

  • Read Current Worklog
    Opens the current worklog file.
  • Choose worklog
    Choose the month of which you want to see the worklog or open the chart in yap.
  • Activities
    Shows your activities and total and average working hours for the current month so far.
  • Start Logging / Stop Logging
    Lets you manually start or stop logging.

Installation Instructions

Download the file worklog_install.zip and unzip it in %b\Macros\worklog. Running the macro worklog_install.edt will let you choose the options, generate all files accordingly and install them in the proper places.
(If you decide for different options later on, you can simply reinstall the worklog package using this macro, too, without losing any of your existing worklogs.)

The following options can be customized:

  • "When do you want the new day to begin?"
    Of course a day begins at 00:00. But some people work a lot at nights so they might want the hours after midnight to be regarded as belonging to the previous day. For these, the new day can begin at 12:00. If you're really unstable in your habits you also have the possibility to be asked whether a new day has begun every time you open WinEdt.
  • "Do you want the subject to be logged?"
    The subject will be either the Project's name or, if you don't use WinEdt's Projects, you will be asked (the current file's name will be suggested).
  • "Do you want to view the Up Time in the Status Line?"
    This uses the Custom Info in the Status Line to show you the time you've been working so far. It presupposes that you don't use the Custom Info for something else.
  • "Do you want a chart to be written automatically?"
    This would automatically write a graphical chart for every week. (You need the TEX package schedule.sty for this.)
  • "Do you want me to make menu entries for you?"
    This will add menu entries for the worklog package in the Tools Menu.
  • "Shall I try to edit your Startup and Exit Macros?"
    If you are reinstalling the worklog macro package (or if you mistrust the installation macro), you want to say NO.
    You'll have to edit the Startup and Exit Macros yourself, if you (or the macro) didn't do that before. The file install.log will tell you how to.

By default the macros will be installed in %b\Macros\worklog\ (where %b is WinEdt's local directory, e.g. C:\Documents and Settings\<user>\Application Data\WinEdt). If you want to install it in a different directory, you can easily change this by editing worklog_install.edt. All paths will be set accordingly.

The installation macro will try to add entries in your Startup and Exit Macros (if you wished so). It will tell you what it did in the file install.log in worklog's folder. You should check whether it has done everything correctly.

If you want to see comments and the other (outcommented) options in the files -- and not only in the installation macro -- you can simply outcomment one of the first lines of the installation macro. Though this might in some cases lead to performance problems, it can help if you want to edit the files.

The file install.log will tell you which options you have chosen and what files have been written.

Download

/worklog_install.zip

and for the generation of the chart:

schedule.sty (from CTAN)

Macro contributed by Robert <w.m.lgmx.net>.

WinEdt Macro Library  | WinEdt  next macro