You can’t hide items in the way that you want with the stylesheet. The best you could do is style them so that the text color matches the document background color. Then they wouldn’t be visible, but they would still take up space, and be editable… not recommended.
You also can’t permanently hide @done items in a document… only filter them out. Instead your options are:
-
Simplest… just delete @done items. That’s pretty much always what I do.
-
If you do need to be able to look back at old archived items one possibly is to archive them to a different file. So they will be removed from your current document, but added to a separate “Archive” document. This behavior isn’t build into TaskPaper, but there’s a script that automates the process for you: