Move node to Library when a supertag is used
🙏 Thanks to many community members but especially Ready and Navigator Dee for surfacing this tip in a recent conversation! For more stuff like this, join our community to share and learn about all things Tana 🫶
Goal
To move all nodes to a single place when they get tagged. This is useful if you want nodes of a certain type to live in a place that makes sense for breadcrumb navigation.
Instructions
For this example, we're going to build a command that moves all tagged nodes to the Library.
Build the command
- Create a new command called Move to Library
- Add the command Move node
- In the parameter Move node target, pick the
Library
from the dropdown. There are other locations to choose from as well, and you can insert a reference to any node you want as the target - Add parameter Remove references after moving node and give it your desired setting. Most would want it
unchecked
so it leaves a reference of the node in the original location - Add parameter Move original node and
check
it. This ensures that even when you use the Add tag action on a reference, it moves the original node to the desired location and not the reference (which won't achieve the goal of this command)
- Add the command to the config of the supertag in question. Go to AI and Commands > On added, and add a reference to the command here.
Testing the command
To test it, use the supertag on a node:
- If used on a node, it should immediately send the original to the specified location and leave a reference behind.
- If used on a reference, it should send the original - wherever it is - to the specified location.
That's it 🙌