Recent

Author Topic: ToDoList package, support for .todo files  (Read 747 times)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4570
  • I like bugs.
ToDoList package, support for .todo files
« on: February 18, 2025, 07:58:04 pm »
Hi!

The ToDoList now supports an external file with suffix .todo in a project or package directory. The stem of the file's name should match with the project / package name.
The syntax is simple. A line starts with "ToDo:" (or "Done:" or "Note:") and the following text from that line is copied to the view. The text can continue in the following lines but it is not copied to the view. You can only see it in the file when clicking on the item.

Has this .todo file feature worked a long time ago? There was some code for such support but it didn't work.

I also improved handling of include files. Now a ToDo item in an include file is listed only once.
And the view is updated when a project is switched. And a ToDo list for a package works... etc.
Please test.
« Last Edit: February 18, 2025, 07:59:53 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

cdbc

  • Hero Member
  • *****
  • Posts: 2124
    • http://www.cdbc.dk
Re: ToDoList package, support for .todo files
« Reply #1 on: April 21, 2025, 09:24:35 am »
Ahrgg, @d2010: PUT A SOCK IN IT!!! It's way above your paygrade!

Good work Juha =^, Me Likey  8)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 3.6 up until Jan 2024 from then on it's both above &: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 4.99

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4570
  • I like bugs.
Re: ToDoList package, support for .todo files
« Reply #2 on: April 21, 2025, 04:02:07 pm »
@d2010, I am not sure if I understand. Are you suggesting to have many .todo files for a project? It may not be needed often. The most logical place for ToDo items is still inside Pascal source files, near the place where a planned code will go. A .todo file is useful for initial design phase when a project does not yet have source files for the planned features. Then those planned features can be listed in a single .todo file.
The ToDoList plugin must not take all .todo files it finds in the project directory. Remember, there can be multiple projects there. However if many .todo files were added to a project (in Project Inspector) then the plugin could read them.
If somebody wants to implement it, please go ahead. Patches are welcome.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018