I think this is a future feature question. I am pretty sure it doesn’t exist now, although, I have been wrong before. It would be nice if you could do more than a single thing at a time in TaskPaper. Here I am thinking of using a search to focus on a set of items, and I want to see that found set expanded in the results of the search. Sometimes they are already expanded, and sometimes not.
The macro idea I am thinking of could be part of a saved search and could look something like, “Circular Tower Paper Tray”, “Expand Items”. Currently it is not even possible to do this with the keyboard as the search gives the proper results but all the expand Item type menu commands are greyed out and inactive until you actually click on the found set. You can’t click on the search and hit option-o to expand the search results.
This would be available in the area of the search engine and the saved search. I know @jessegrosjean is hard at work with v4 WriteRoom, and then v4 TaskPaper. I hope that this idea of building search steps might catch his interest.