Page 1 of 1

[Tips] How to rename Tags, Categories etc.

Posted: Tue Nov 26, 2019 11:43 am
by Niko
Inspired by this question viewtopic.php?f=7&t=318
If you want to change the name of a category in ToDoList one of the simplest way to do it is to edit the name in a text editor. In this tut I use NotePad++ (https://notepad-plus-plus.org/)
Before making any changes in ToDoList project files make backups.
1) Open the folder with your .tdl files and select the project in which you want to rename categories. Right click -> open with NotePad++ (or any other editor)
HowToEditCategories.gif
HowToEditCategories.gif (27.18 KiB) Viewed 4771 times
addendum by Korunekosama
2) Find the name of the category you want to rename (Ctrl+F) in <CATEGORY> tags.
3) Type the name of the category in the "replace tab" with <CATEGORY> tags:

Code: Select all

Find What:  <CATEGORY>{the name of the category}</CATEGORY>
Replace with: <CATEGORY>{A new name for the category}</CATEGORY>
4) Click "Replace all"
HowToEditCategoriesReplace.gif
HowToEditCategoriesReplace.gif (401.84 KiB) Viewed 4771 times
5) Save the file

Re: [Tips] How to rename Tags, Categories etc.

Posted: Fri Nov 29, 2019 8:58 am
by Korunekosama
Hello !

Thanks for the tip.
a suggestion: rather include in the string to replace the tags <CATEGORY> ... </ CATEGORY> because if one of the categories has a name "reserved" (TITLE for example), the list will no longer work. So :
- Search the category you want to rename in the file
- replace <CATEGORY>OldName</CATEGORY> by <CATEGORY>NewName</CATEGORY>

Re: [Tips] How to rename Tags, Categories etc.

Posted: Fri Nov 29, 2019 3:31 pm
by Niko
thank you, I have changed the text of the post.