Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-07

TODO items

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

If one inserts a TODO manually, how does one use the IDE to add/edit priority, category etc.? Or can these only be set by creating the entry from the IDE in the first place?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Hans-Peter Diettrich: As long as no such support exists, navigate to and edit the entry in the source code.…
Hans-Peter Diettrich wrote 9 lines
Mark Morgan Lloyd schrieb: > If one inserts a TODO manually, how does one use the IDE to add/edit > priority, category etc.? Or can these only be set by creating the > entry from the IDE in the first place? As long as no such support exists, navigate to and edit the entry in the source code. It's more intuitive to update the entry, when the code (nearby) has been updated, instead of finding an particular entry in the list. Nonetheless more support is desireable...

But to update the entry, you have to create a temporary one using the IDE so you have a reminder of the parameters it expects :-)

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Graeme Geldenhuys
to Mark Morgan Lloyd: If one inserts a TODO manually, how does one use the IDE to add/edit priority, category…
Mark Morgan Lloyd wrote
If one inserts a TODO manually, how does one use the IDE to add/edit priority, category etc.? Or can these only be set by creating the entry from the IDE in the first place?

By manually, do you mean you physically type in.... { TODO: my todo } somewhere in your code?

If so, simply type the priority, owner, category manually too. eg: { TODO 4 -oGraeme -cMyCategory : my text here }

I was going to say "You can obviously edit a simple todo entry later via the IDE todo list dialog too.", but when I tried, I was surprised to find out you can't. :-/ That is a bit weird, but should be very easy to add. Probably just a minor oversight.

I know this is no directly related to you post, but thought it worth mentioning...

Alternatively, I stopped using the inline (in source code units) TODO items. I now have a TODO.txt file as standard with every project I create. Or if projects are related, I have one TODO.txt file covering all sub-projects. This file is also added to the Project Inspector, so is easy to find and open, and it is version controlled with the rest of my source code (so shared by multiple developers). I find the external todo file much easier to work with, better text formatting, ability to have sub-todo items, and quicker to review what I need to work on next. Priority is simply managed my what items appear at the top of the list. Categories are managed by a title/section. Once items are complete, they later move to the bottom of the list to make space for other new priority items - then later those completed items are deleted/trimmed (deleting oldest entries first - bottom up). Here is an actual example:

---------------------[ TODO.txt ]-------------------------

M2 System todo list
---------------------

Legend
======
[ ] - not started yet
[o] - started but not complete
[x] - completed task.

Priority Items for next release
=========================
[x] - Data conversion from MDB to Firebird database. I need at least 3 different Centre databases.
[x] - TAdmin: Accounting & Bulk Invoicing must work. [x] - TAdmin: Security must be in place. Evaluation mode. [x] - TAdmin: Reporting system.
[ ] - Module Installer / Converter for new system. [x] - Setup procedure.
* Directory layout required
* Apache install
* Firebird install
* Application install (tudor admin, docview, reports, help, cgi apps)
* Firefox install with homepage setup to M2 Login

Tutor Admin
===========
[x] - Email statements and student history reports to clients (bulk and individual)
[o] - Get the sms system working on the new software [ ] - User Maintenance Form. Make it look like all the other property forms. A single tabsheet with details.
[ ] - One click Stats. This will generate all reports and stats form in one go.

Installation / Deployment
=========================
[o] - Create a cross-platform installer. Already started this and is basing the design on Loki Games's installer.

....snip...

------------------------[ end ]-----------------------------

I have used this for a few years now, and it works very well. It is also nice to be able to e-mail my boss (instantly) a list of todo items. I also regularly switch between IDE's, so my todo list works with any IDE or editor.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Graeme Geldenhuys
to Mark Morgan Lloyd: But to update the entry, you have to create a temporary one using the IDE so you have a…
Mark Morgan Lloyd wrote
But to update the entry, you have to create a temporary one using the IDE so you have a reminder of the parameters it expects :-)

Parameters are mnemonic so are really not hard to remember.

-o for Owner
-c for Category

Priority is just a number after the TODO keyword.

:)

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Hans-Peter Diettrich
to Mark Morgan Lloyd: If one inserts a TODO manually, how does one use the IDE to add/edit priority, category…
If one inserts a TODO manually, how does one use the IDE to add/edit priority, category etc.? Or can these only be set by creating the entry from the IDE in the first place?

As long as no such support exists, navigate to and edit the entry in the source code. It's more intuitive to update the entry, when the code (nearby) has been updated, instead of finding an particular entry in the list. Nonetheless more support is desireable...

DoDi

Reply by email