The Project Tree
The Project Tree is the main way around a project: every object type, and under it every object as an outline. This page says what the tree shows, how to make, rename, delete and move types and objects, how to sort the tree, what its right-click menu holds, how to choose icons, and how to find an object by its name.
1. What the tree shows
The top level of the tree holds the project's object types. Under each type are its top-level objects, and under each object its children, as deep as they go. A small arrow in front of a row means it has rows under it; click the arrow, or double-click the row, to open or close it.
- Each row has an icon: the object's own, or else its type's (see section 8). The icon takes the object's color, or else its type's color.
- Rows made or changed since the last save are drawn bold, in the theme's color for unsaved rows, and the panel's title reads
* Project Treewhile types or objects have been made or deleted. - With Markdown folders open, the tree shows the folders and files themselves at the top level, with each folder's subfolders and files under it (see Markdown Folders).
The tree remembers which rows are open, the selected row and the Inspector tab you were on, and opens the project again the same way. These are kept in the project file.
2. Selecting
Click a row, or move to it with the keys below, to select it. Selecting an object shows its document in the Document panel, its fields in the Inspector, and marks it in the Graph. In a project of more than 400 objects the Graph then shows only that object and the objects linked to or from it (see The Graph). Selecting a type shows a list of its top-level objects in the Document panel.
| Key | What it does |
|---|---|
Up, Down |
Selects the row above or below. |
Home, End |
Selects the first or the last row. |
Right |
Opens the selected row. |
Left |
Closes the selected row. |
The keys work while the tree has the keyboard focus: click into it, or press Ctrl+Tab until it has it. The mouse wheel scrolls the tree.
3. Making types and objects
| Command | Key | What it makes |
|---|---|---|
| File > New Group | Ctrl+Shift+N |
A new object type. Skein asks "New object type name:". The type takes the color of Settings > Templates > "Default new object type color", if that is set. |
| File > New Child Node | Ctrl+N |
With a type selected: a new top-level object of that type. With an object selected: a new child of that object, of the same type. Skein asks "New object name:". |
| File > Make Child Node | none | A new child of the selected object, of the same type. Greyed unless an object is selected. |
| File > Make Parent Node | none | A new object at the level of the selected object's parent, placed right after the parent, of the parent's type. Skein asks "New node name:". Greyed unless the selected object has a parent object. |
A new object's document starts with the template of Settings > Templates > "Default template for New Child Node" (empty, at first). The new row is selected and the tree gets the keyboard focus, so you can go on at once with the arrow keys, F2 or Ctrl+Delete. Undo removes a type or object you have just made.
The name dialog has an entry, OK and Cancel. Enter is OK, Escape is Cancel, and Tab moves between the entry and the buttons. An empty name counts as Cancel.
4. Renaming
Edit > Rename (F2) renames the selected type ("Rename object type to:") or object ("Rename to:"), starting from the current name. Undo brings the old name back.
5. Deleting
Edit > Delete (Ctrl+Delete) asks first: "Delete "Sourdough"? This cannot be undone." Choose Delete to go on, or Cancel.
- Deleting an object deletes all its children, with their documents, field values, table rows and relationships.
- A type can only be deleted when it holds no objects. For a type that still has some, Skein says so ("... still has objects. Delete them first.") instead of asking.
- Delete cannot be undone. If you delete something by mistake before you save, quitting with Discard (or restoring a backup) gets it back; see Projects and Saving.
6. Moving with drag and drop
Drag a row with the mouse and drop it. While you drag, the tree shows where the row will go: onto another row, or between two rows.
| You drop | Onto / between | What happens |
|---|---|---|
| An object | Onto another object | It becomes the last child of that object. It may be of another type; it keeps its own type. |
| An object | Between two objects | It moves there, among those objects. If they have another parent, it moves to that parent. |
| A type | Between two types | The types change their order. |
An object cannot be dropped into one of its own children, onto a type, or among the top-level objects of another type. Undo puts a moved object back where it was; a new order of the types cannot be undone.
Dragging a row while the tree is sorted by name switches the sort back to Manual (section 7).
7. Sorting
The tree's right-click menu has three sorts. The one in use is marked with a *.
| Sort | What it does |
|---|---|
| Sort: Manual | The order you gave by dragging rows. New objects go to the end. This is the first sort of a project. |
| Sort: Name (A-Z) | Types and objects in the order of their names. |
| Sort: Name (Z-A) | The same, the other way round. |
The sort is kept in the project file.
8. The right-click menu
A right-click in the tree opens a menu that depends on where you click. It always starts with Undo and Redo of the project's changes and ends with the three sorts and Find... (which opens the Find bar, section 10). Between them are the items for what you clicked:
| Clicked on | Items |
|---|---|
| An empty part of the tree | New Group. |
| A type | New Child Node, Rename, Delete, Change Icon..., Manage Fields... |
| An object | Rename, Delete, Change Icon..., Manage Fields... (for the object's type), Make Child Node and Make Parent Node (greyed unless the object has a parent object). |
A right-click on a row selects it first. A right-click on empty space keeps the selection as it was.
9. Choosing an icon
Edit > Change Icon... (Ctrl+Shift+I) opens the Change Icon dialog for the selected type or object. It shows the whole icon library, several thousand icons, in a grid you can scroll.
- Type in the search field above the grid to show only the icons whose names match.
- Click an icon to select it. The title of the dialog shows the name of the icon under the pointer, or else of the selected one, as
Change Icon - Chef Hat. The current icon is selected when the dialog opens. - Apply uses the selected icon and keeps the dialog open; OK uses it and closes the dialog; Cancel,
Escapeor the close button closes it without a further change (an icon you have already applied stays).
A type's icon shows on the type and on every object of it that has no icon of its own. An object's icon shows on that object only. A change of icon is not added to Undo. Whether icons are drawn as outlines or filled is chosen in Settings > Interface (see Themes).
10. Finding an object by its name
A small Find tab peeks out at the bottom edge of the Project Tree. Click it, press Ctrl+F, or choose Find... in the tree's right-click menu or its options menu, and a search bar slides up. Click into its entry ("Search tree…") and type.
- As you type, the tree shows only the objects whose names contain what you typed (without regard to capitals, for the letters A to Z), together with the rows above them, all opened. Only the names of objects are searched, not the names of types, documents or fields.
- Click one of them to select it. The search ends, the tree goes back to the rows that were open before, and only the path to the chosen object stays open as well.
Escapein the entry, or another click on the Find tab, closes the bar, clears the search and puts the open rows back as they were.- The bar also closes when the entry loses the keyboard focus.
The bar opens without the keyboard focus, so that its hint "Search tree…" can be read; click into the entry to type. Escape anywhere in the main window closes the open bar, as another click on the Find tab does (see Keyboard Shortcuts). After you pick a match, the bar opens again at once the next time.
11. Known limitations
- Change Icon cannot take an object's own icon away again, so that it shows its type's icon once more.
- The search shows at most 4096 matches.
- Moving rows by hand in a group of more than 256 rows (objects with the same parent, or types) may not work for rows past the first 256.
- When nothing is selected, New Child Node, Make Child Node and Make Parent Node are greyed in the File menu;
Ctrl+Nthen says "Select an object type, or an object, first."