This is
#1499, which I have just close. Summary:
The 'import-todo-text-files' command prompts for one or more .txt files and shows the tasks in each file. At present, this command just prints the calculated list of ToDoTask objects.
Scripts or plugins can use the list of ToDoTask objects as follows:
import leo.core.leoImport as leoImport
# path should be a full path to a todo.txt file
tasks = leoImport.ToDoImporter(c).get_tasks_from_file(path)
g.printObj(tasks, tag=f"tasks from {path}")
"tasks" is a list of ToDoTask objects, which presents the parsed tasks in an easy-to-use form. Plugins could use the ToDoTask class as is, or adapt it to, say, set uA's.
Imo, this is good enough for Leo 6.2. Let me know your experiences.
Edward