Keyboard shortcuts
Prefab's shortcuts are the ones in its menus, and there are not many of them. Anything not listed here has no key of its own.
File
| Shortcut | What it does |
|---|---|
| ⌘NCtrl+N | New template |
| ⇧⌘ICtrl+Shift+I | Import a folder as a template |
| ⌘DCtrl+D | Create from the selected template |
| ⇧⌘OCtrl+Shift+O | Import a .prefab template file |
| ⇧⌘ECtrl+Shift+E | Export the selected template |
⌘DCtrl+D asks where the folders should go, then prompts for values if the template needs any.
⇧⌘ECtrl+Shift+E saves a .prefab file, and says so if no template is selected.
Editing a template
These act on the folders and files selected on the canvas. When a text field has focus they do the ordinary text thing instead, so renaming a folder behaves as you would expect.
| Shortcut | What it does |
|---|---|
| ⌘ZCtrl+Z | Undo |
| ⇧⌘ZCtrl+Shift+Z | Redo |
| ⌘XCtrl+X | Cut the selection |
| ⌘CCtrl+C | Copy the selection |
| ⌘VCtrl+V | Paste |
| ⌘ACtrl+A | Select everything |
| Delete | Delete the selection |
| ⌘DeleteCtrl+Delete | Delete the selection, from the editor itself |
Cut and copy carry the whole subtree, so a folder brings its contents. Pasted copies are new items rather than links back to the originals.
Window
| Shortcut | What it does |
|---|---|
| ⌘,Ctrl+, | Settings |
| ⌘0Ctrl+0 | Show the main window |
| ⌘\Ctrl+\ | Show the sidebar |
⌘0Ctrl+0 brings the window back when Prefab is running in the menu barnotification area with nothing on screen, creating one if none is open. ⌘\Ctrl+\ is registered by the collapsed sidebar, so it brings the sidebar back; hiding it again is the button in the sidebar's header.
Dialogs
Prefab's dialogs follow the system conventions: Return confirms the highlighted button and Esc cancels. In the prompt shown before a deploy, Return is Create.