|Version 3 (modified by szabgab, 4 years ago) (diff)|
Programmers tend to add comments to their code to remind themselves for things they will need to do later. They usually mark them with some specific word or string so they can easily search for that string later. Many times this string is TODO or TO DO or XXX.
The TODO List Feature of Padre makes it easier to see all such items in the current file. When enabled via View/Show? To-do list Padre will open a window on the right side listing all the lines that match a pre-defined regex. This regex is configurable via Preferences/Behavior/RegExp? for TODO panel
- Open a perl 5 file (check in the status bar if the mime-type is Perl 5)
- Open the TODO list window using View -> To-Do List.
- Check if the window opened on the right-hand side
- In the file type in the following:
Who Padre version system status fenderson r13895 Ubuntu 10.10 OK
# TODO hello
- See that the text hello appears in the TODO window
- (due to a bug currently it only shows up after saving the file)
- add more items to the test case to cover the other features and bugs as well.
- simple text files
- other files (with other kinds of commenting mechanism)
- new file that has never been saved
- change the regex to an incorrect one, see that padre does not let you save the incorrect regex
- change the regex to some other correct value and see if that works