[Tips] How to rename Tags, Categories etc.

A place to post your ideas and solutions for how best to make use of the software

Moderators: abstr, Niko

Post Reply
Niko
Posts: 239
Joined: Wed Sep 18, 2019 6:48 am

[Tips] How to rename Tags, Categories etc.

Post by Niko » Tue Nov 26, 2019 11:43 am

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 4769 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 4769 times
5) Save the file

Korunekosama
Posts: 35
Joined: Mon Jul 29, 2019 8:47 am

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

Post by Korunekosama » Fri Nov 29, 2019 8:58 am

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>

Niko
Posts: 239
Joined: Wed Sep 18, 2019 6:48 am

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

Post by Niko » Fri Nov 29, 2019 3:31 pm

thank you, I have changed the text of the post.

Post Reply