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

ShortcutWhat it does
⌘NCtrl+NNew template
⇧⌘ICtrl+Shift+IImport a folder as a template
⌘DCtrl+DCreate from the selected template
⇧⌘OCtrl+Shift+OImport a .prefab template file
⇧⌘ECtrl+Shift+EExport 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.

ShortcutWhat it does
⌘ZCtrl+ZUndo
⇧⌘ZCtrl+Shift+ZRedo
⌘XCtrl+XCut the selection
⌘CCtrl+CCopy the selection
⌘VCtrl+VPaste
⌘ACtrl+ASelect everything
DeleteDelete the selection
⌘DeleteCtrl+DeleteDelete 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

ShortcutWhat it does
⌘,Ctrl+,Settings
⌘0Ctrl+0Show the main window
⌘\Ctrl+\Show the sidebar
Two of these are worth knowing about

⌘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.