Skip to content

Use the command palette

The command palette finds modules, actions, generators, findings, apps and commands of Mortise. A row that runs a command opens its panel or its form first. The command runs from there, so you need to have chosen the PHP for the app.

Press Ctrl K (Cmd K on macOS) from anywhere, or click the entry in the middle of the title bar. Press Esc or the same key again to close it.

  1. Open the palette.

  2. Type part of the module name and a word of what you want, such as checkout migrate or bil model. Letters only need to come in order: mm bil finds module:make-model in Billing.

  3. Press Up or Down to move to the row.

    • Rows under “Actions for Checkout”, such as “Migrate Checkout”, show the hint Action.
    • Rows under Generators, such as “Generate a model in Checkout”, show the hint Form.
  4. Press Enter. An action opens the Actions tab on its panel. A generator opens its form.

  5. Read the command line, set the options, then press the run button, or Ctrl Enter (Cmd Enter on macOS).

The command palette with the query check: a group of modules, actions for Checkout, a generator, and two findings.The command palette with the query check: a group of modules, actions for Checkout, a generator, and two findings.

If no module name matches, the palette lists the actions of the module selected in the index. With All modules selected, it lists Actions for all modules.

To search another app, press Tab. The footer names the app the palette searches.

  1. Open the palette and leave the query empty.

  2. Under Recent, find the action or generator. An action row says when it ran, such as “ran 2 minutes ago”. A generator row shows Form.

  3. Press Enter. The panel of the action, or the form of the generator, opens.

  4. Check the options and press the run button.

The palette with an empty query: recent rows, the Go to group and the Apps group.The palette with an empty query: recent rows, the Go to group and the Apps group.

Recent shows up to three actions and generators that ran last in the app, from its history of runs. To run the exact same line again, use the history of the runner drawer instead: see Run a command again from the history.

The palette lists a destructive action only when the query holds its own word: reset, refresh, fresh or delete.

  • checkout reset, checkout refresh and checkout delete find Reset migrations, Refresh migrations and Delete module of Checkout.
  • fresh finds Drop all tables and migrate, for all modules.
  • refresh does not find fresh.
  1. Type the module name and the word, such as checkout delete. The destructive row comes first in its group.

  2. Press Enter. The Actions tab opens on its panel. Nothing runs yet.

  3. Continue as in Run a destructive action. Mortise asks before the command runs.

Every group, row and key is listed in Command palette. All shortcuts are in Keyboard.