Command Line
In this video, you'll learn about commands, the command line and the most useful commands like find nodes, remind me and more
Our command line gives you the magic of a developer at your fingertips.
It's lightning fast and picks up commands as you type. You can launch powerful commands to operate and change the behavior or view of the node you're on.
You launch it with Cmd/Ctrl + K
Essential commands and what they do | |
---|---|
Remind me | Sends your node to a date of your choice, like tomorrow or a specific date |
Find nodes | Gives you the possibility to set up list or tables based on time created, dates, information in fields and much more |
View as | Show you quickly the different views from the command line. When you have a shared workspace, you can move an item there |
Move to | When you have a shared workspace, you can move a node there |
A Tana backbone function: Find nodes
The "Find nodes" command gives every user the magical powers of developers, allowing you to create what would have been complex database queries, lightning fast and easy in one command:
find nodes with a specific tag, and view them in a list or table, like "Find nodes with tag #todo as list"
find nodes created within a certain timeframe "Find nodes created last 7 days as list"
or combine them with "Find nodes with tag #todo created last 7 days as list"
find nodes with specific fields, and the values in these fields "Find nodes with tag #todo created last 7 days with field Owner=John Doe as list"
Custom Keyboard Shortcuts
You can define custom shortcuts for any command in the command line, all the way down to setting specific tags or field values. To trigger shortcut recording, open the command line, find the command you want to set a shortcut for, and hit Cmd/Ctrl + Shift + K.
To remove custom keyboard shortcuts, go to Settings in the Home node or Cmd/Ctrl + K > Open Settings, and look under "Private keyboard shortcuts" for the custom shortcut you want to delete.
List of Commands
Commands | Feature | UI Definition |
---|---|---|
Remind me | Calendar | A reference of the selected node will be sent to daily page of choice |
Open calendar for → | Calendar | Open a daily page |
Show today node | Calendar | Opens today node in full page layout |
Notify @ → | Collaboration | Sends a notification to target user's Notification menu |
Add contextual content | Contextual data | Creates contextual content (child node, field, column) that only appears in this specific context; doesn't add data to the node generally |
Get html link to node | Export | Copies URL of node along with node contents |
Export plain html | Export | Opens a new browser html page of the selected node and contents |
Show [Field] → | Fields | Switch on chosen hidden field |
Set Optional → | Fields | Toggle whether the field is Optional or not (Yes/No) |
Set Cardinality → | Fields | Toggle what Cardinality a field is (single value/list of values) |
Set Datatype → | Fields | Set the type of data the field can contain |
Set Autocollect options → | Fields | Toggle whether a field will autocollect values to populate options |
Set Hide field conditions → | Fields | Toggle Hide state of a field |
Set Source supertag → | Fields | Set Source supertag for all field values |
Set Reverse attribute → | Fields | Set field from Source supertag that will populate with a reference to nodes referring to this node |
Set Formula → | Fields | Toggle Formula button on Field |
Create field | Fields | Creates a field node |
Sort by Not Done → Done | Filter | Changes sorting of search results |
Sort by date created, Old → New | Filter | Changes sorting of search results |
Sort by date created, New → Old | Filter | Changes sorting of search results |
Sort by name, A → Z | Filter | Changes sorting of search results |
Sort by name, Z → A | Filter | Changes sorting of search results |
Show completed items | Filter | In a list of checkbox nodes, show checked items |
Hide completed items | Filter | In a list of checkbox nodes, hide checked items |
Join collaborative space → | Global Interface | Add workspaces you've been invited to |
Open sidebar node | Global Interface | Open the node that drives the sidebar content |
Open layout node | Global Interface | Open the node that saves all layouts (Tana Labs savedLayout) |
Open in new browser | Global Interface | Opens node in a new browser instance |
Go back | Global Interface | Goes back to previous location navigated from |
Open workspace → | Global Interface | Open the home node of chosen workspace |
Open quick add | Global Interface | Open quick add |
Hide sidebar | Global Interface | Hides the left sidebar |
Toggle sidebar | Global Interface | |
Set theme to dark mode | Global Interface | Toggles dark mode theme on |
Set theme to light mode | Global Interface | Toggles light mode theme on |
Open trash (deleted) | Navigation | Opens node where all deleted items go |
Open library | Navigation | Open your Library page |
Open settings | Navigation | Open your Settings page |
Open home node of current workspace | Navigation | Open your home node |
Open schema | Navigation | Open your schema, where definitions for supertags and fields live by default |
Create keyboard shortcut | Navigation | Dumps keyboard shortcut nodes for manual input (do same while navigating to command line option you want, then hit Cmd+Shift+K to auto-record a shortcut which gets saved in Settings) |
Move to → | Nodes | Brings up a list of predetermined locations to move a node to. Defaults are Home, Library and Today. |
Delete node | Nodes | Deletes selected node and sub-nodes in trash |
Clone Reference | Nodes | Convert a Reference node into a non-referenced node with all contents cloned |
Duplicate node | Nodes | Duplicates selected node |
Hard delete including references | Nodes | Deletes a node and all References. Inline refs and refs in other workspaces stay, but with trash icon. |
Show edit attribution | Nodes | Show Edit Attribution of node |
Hide edit attribution | Nodes | Hide Edit Attribution of node |
Hoist children to siblings | Nodes | Move child nodes to the same level as selected node |
Configure node | Nodes | Opens configuration for selected node |
Configure node (legacy) | Nodes | Opens legacy configuration for selected node |
Create URL node | Nodes | Creates a node that receives and specially formats URLs |
Lock node | Nodes | Locks a node from being edited |
Unlock node | Nodes | Unlocks a locked node |
Paste as code | Nodes | Pastes contents in a special formatting code node |
Add description | Nodes | Opens the description of the selected node |
Set move target | Nodes | Adds selected node to list of places when using Move command |
Select node | Nodes | Selects the whole node |
Copy full content to clipboard | Nodes | Copies all contents of selected node as indented plain text |
Select children | Nodes | Selects child nodes of selected node |
Iterate and convert URLs to URL nodes | Nodes | Finds nodes that are just URLs and converts them to Tana URL nodes |
Indent nodes below | Outline editing | Indents nodes below selected node |
Expand | Outline editing | Expands the selected node's child nodes |
Expand all | Outline editing | Expands the selected node's child nodes and all their ancestors |
Collapse | Outline editing | Collapses the selected node's child nodes |
Collapse all | Outline editing | Collapses the selected node's child nodes and all their ancestors |
Move up | Outline editing | Moves selected node up |
Move down | Outline editing | Moves selected node down |
Insert after | Outline editing | Insert new node after selected node |
Insert before | Outline editing | Insert new node before selected node |
Zoom full page | Panels and Layouts | Selected node opens to full page layout |
Zoom in panel | Panels and Layouts | Selected node is opened within the current panel layout |
Open in new panel | Panels and Layouts | Selected node is opened in new panel |
Close this panel | Panels and Layouts | Close panel that your cursor is in |
Close panel | Panels and Layouts | Closes the active panel (when multiple panels are open) |
Remove Reference | References | Remove a reference node |
Get link to node | References | Retrieves reference link to node. Same as Cmd+C in an open node |
Find nodes | Search | Starts query builder |
Find todos within | Search | Retrieves todos from within the parent node |
Search within | Search | Searches within the contents of selected node via main search bar |
Create search node | Search | Create an empty search node. Also invoked by typing "?" on an empty node |
Open search | Search | Puts cursor in main search bar at top |
Add tag # | Supertags | Starts searching for existing supertags to add to active node |
Remove tag # | Supertags | Removes selected supertag from node |
Create supertag | Supertags | Convert the contents of a node to a supertag definition |
Insert current date and time | Supertags | Adds text of current date and time (YY-MM-DD hh:mm) |
Insert current time | Supertags | Adds text of current time (hh:mm) |
Create supertag based on content | Supertags | Use node and contents (nodes, fields) to create a supertag |
Edit supertag definition for [supertag] | Supertags | Opens supertag configuration |
Set default tag for content items | Supertags | Choose which supertag gets applied to all new child nodes of selected node |
View as list | Views | Set view of child nodes as list |
View as cards | Views | Set view of child nodes as cards |
View as table | Views | Set view of child nodes as table |
Show view options | Views | Make view options bar appear |
Remove all view options | Views | Removes view settings from a node (if they exist). Also accessible via Configure Node (legacy) |
Add column | Views, Table | Creates column which will appear as a field within nodes listed in the table |
Add contextual column | Views, Table | Creates contextual column/field for nodes listed in the table |
Show column → | Views, Table | Switch on chosen hidden column |
Hide column | Views, Table | Switch off column |
Move right | Views, Table | Move column to right |
Move left | Views, Table | Move column to left |
Delete column and values | Views, Table | Delete column/field and its values |
Add calculation → | Views, Table | On a numeric field, add a calculation type |
Set [Field] → | Views, Table | Set a field option on one or more selected nodes with the same field |