Recent

Author Topic: Feature Request: Option to show only filename in ToDo list (versus full path)  (Read 590 times)

Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
Currently in the ToDo list in the "module" column, the full path is shown, which is useful at times, but sometimes it also makes it (for me anyway) harder to see where is what.
So the friendly request is to be able to toggle between full path and only the filename.

I've already applied this to my own copy of Lazarus with a checkbox and takes only very few minor changes (AFAIK).
(translation may need updating as far as I can see)

As far as I could find I need to update my Lazarus build to the latest version (which is always scary) and make a branch for myself (I'm lost there already) and make a patch.
Could anyone assist in getting this, if others would like to see this option as well of course, submitted for an IDE change?
And where do I submit this proposal (tried Bugtracker but couldn't find an option there).

Please be gentle 😉



For who is interested, these are the changes I made to make it work. Only two files are affected todolist.pas and todolist.lfm.
Basically added a panel with a checkbox, with an onChange event for the checkbox (which calls: UpdateTodos), and slightly modified the AddListItem procedure.

todolist.pas:

Code: Diff  [Select][+][-]
  1. 95a96
  2. >     cbFullPath: TCheckBox;
  3. 97a99
  4. >     pnlFilePathOption: TPanel;
  5. 132a135
  6. >     procedure cbFullPathChange(Sender: TObject);
  7. 559a563,567
  8. > end;
  9. >
  10. > procedure TIDETodoWindow.cbFullPathChange(Sender: TObject);
  11. > begin
  12. >   UpdateTodos;
  13. 596c604,609
  14. <     aListitem.SubItems.Add(aFilename);
  15. ---
  16. >
  17. >     if cbFullPath.Checked then
  18. >       aListitem.SubItems.Add(aFilename)
  19. >     else
  20. >       aListitem.SubItems.Add(ExtractFileName(aFilename));
  21. >

todolist.lfm:

Code: Diff  [Select][+][-]
  1. 2c2
  2. <   Left = 379
  3. ---
  4. >   Left = 623
  5. 4c4
  6. <   Top = 239
  7. ---
  8. >   Top = 328
  9. 133c133
  10. <       Left = 305
  11. ---
  12. >       Left = 299
  13. 140c140
  14. <       Left = 399
  15. ---
  16. >       Left = 386
  17. 147c147
  18. <       Left = 456
  19. ---
  20. >       Left = 443
  21. 152c152
  22. <       Left = 451
  23. ---
  24. >       Left = 438
  25. 159c159
  26. <       Left = 404
  27. ---
  28. >       Left = 391
  29. 171c171
  30. <       Left = 310
  31. ---
  32. >       Left = 304
  33. 178c178
  34. <       Left = 503
  35. ---
  36. >       Left = 490
  37. 193a194,219
  38. >       end
  39. >     end
  40. >     object pnlFilePathOption: TPanel
  41. >       AnchorSideLeft.Side = asrBottom
  42. >       AnchorSideRight.Control = ToolBar
  43. >       AnchorSideRight.Side = asrBottom
  44. >       AnchorSideBottom.Side = asrBottom
  45. >       Left = 715
  46. >       Height = 46
  47. >       Top = 2
  48. >       Width = 161
  49. >       BevelOuter = bvNone
  50. >       ClientHeight = 46
  51. >       ClientWidth = 161
  52. >       TabOrder = 1
  53. >       object cbFullPath: TCheckBox
  54. >         AnchorSideTop.Control = pnlFilePathOption
  55. >         AnchorSideTop.Side = asrCenter
  56. >         AnchorSideRight.Side = asrBottom
  57. >         Left = 1
  58. >         Height = 18
  59. >         Top = 14
  60. >         Width = 154
  61. >         Caption = 'Show Full Path of Files'
  62. >         TabOrder = 0
  63. >         OnChange = cbFullPathChange



Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
Just to illustrate the differences:




paweld

  • Hero Member
  • *****
  • Posts: 1607
I recommend reporting bugs and suggestions primarily via the bug tracker: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues
Best regards / Pozdrawiam
paweld

dsiders

  • Hero Member
  • *****
  • Posts: 1607
I recommend reporting bugs and suggestions primarily via the bug tracker: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues

I got the impression he's soliciting feedback about the change. Personally, I'd never use it. But his moniker is Tweaking4All, so...

Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
I recommend reporting bugs and suggestions primarily via the bug tracker: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues

Thanks for the suggestion 😊
Wanted to try that, but it only offers "Task", "Incident" or "Issue" - feels inappropriate to post a feature request on any of these?
Or should I use one og those 3?

Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
I got the impression he's soliciting feedback about the change. Personally, I'd never use it. But his moniker is Tweaking4All, so...

Would be nice to know if others care for this or not indeed.
Personally, I like a cleaner look when looking at the files of my own project in the ToDo list, versus lengthy paths. So I did the effort to make the modification myself. 😊

paweld

  • Hero Member
  • *****
  • Posts: 1607
Quote from: Hansaplast
Wanted to try that, but it only offers "Task", "Incident" or "Issue" - feels inappropriate to post a feature request on any of these?
absolutely: https://gitlab.com/freepascal.org/lazarus/lazarus/-/work_items?sort=created_date&state=opened&search=%22Feature%20Request%22&first_page_size=100
Best regards / Pozdrawiam
paweld

Hansaplast

  • Hero Member
  • *****
  • Posts: 783
  • Tweaking4All.com
    • Tweaking4All
Awesome!
Thanks for confirming paweld!


Posted it in Bugtracker: 42261
« Last Edit: April 30, 2026, 11:43:43 am by Hansaplast »

 

TinyPortal © 2005-2018