Macterm

Command palette

Press ⌘P. One list searches everything:

To change the tree of projects and tabs from the keyboard, use these commands. They are also in the Project menu.

The two moves into a project show a list of the projects that can take the tab or project, each with its path of names (Work › api). Type a name or a path to filter the list. Select a project and press ↩. When you select more than one row in the sidebar, these commands move the selected rows. See tabs and projects.

To change the folder of the current project, run Change Project Directory (also in the Project menu). Its screen has a Current Pane's Directory row, with the folder of the focused pane under it. Press ↩ to use that folder. The row is not there when the pane is in the project's folder. You can also type a path. The screen completes folder names, as path mode does: ⇥ or a click puts a completion in the field. Press ↩ to use the path in the field, or select a completion row with the arrow keys and press ↩. Open panes stay where they are. A new tab that starts in the project folder starts in the new folder. A remote project does not have this command.

To open a folder as a project, type a path that starts with / or ~. The palette changes to path mode and completes folder names.

New Project (⌘O) opens the New Project screen. The New Project button at the bottom of the sidebar, File → New Project… and the Dock menu also open it.

To add a remote project, choose New Remote Project and select a host of your ~/.ssh/config, or type a spec such as devbox:~/dev/api. See remote projects.

Some commands open a screen of their own in the palette. A pill above the palette names the screen. In the list, a row for such a screen shows the icon of the screen and a chevron. A screen can open another screen. The pills then show a trail, with the root first. Click a pill to go back to it. Press Esc to go back one screen. You can also press Delete with nothing typed. A held Delete clears the search and stops at the empty field.

A screen that must wait for its list shows a spinner. If the list fails, the screen says why and shows a Retry button. ⌘R also retries.

Some rows have a second action under ⌥. Hold the key. The subtitle of the row then names what ⌥↩ (or an ⌥-click) does.

Rename Tab (⌘R) and Rename Project ask for the new name in the palette. The field shows the current name, selected. When you type a new name, the row Rename to "name" shows under the field. Press Return on that row to rename, or Esc to keep the name. To give a tab its automatic name again, clear the field: the row changes to Use the automatic name. If a project cannot have the name, for example a name with >, the palette shows the reason and no row. You can also double-click a row in the sidebar to rename it there.

Each screen can have its own keybind in Settings → Keymaps, under Palettes, next to ⌘P. No screen has a keybind by default. The keybind opens the palette on that screen. Press it again on that screen to close the palette. Press it on another screen to go to its screen.

To open a git worktree of the project from the palette, install the Git extension. Its Git Worktrees palette opens a worktree in a new tab or a split. The Worktrees menu in the sidebar also opens worktrees.

Extensions

Extensions add screens. You can install an extension from the Macterm repository, or write your own extension in ~/.config/macterm/extensions/. Each palette of an extension is a YAML file. The output of a command becomes rows that you can search. Each row opens another screen, or runs a command in a new tab or split. For example, a Kubernetes palette goes from namespaces to pods to the logs of a pod. Each palette is in the Palettes section, next to the built-in screens.

See extensions to make one, the palette reference for the file format, and the examples for complete palettes.

Settings → Extensions

Settings shows every extension as a card in one grid that you can search by name. The grid has the extensions that you installed, in ~/.config/macterm/extensions/. It also has the extensions in the Macterm repository that you did not install. The installed extensions come first, and each group is in order of name. To show only one group, use the menu next to the search field: All, Installed or Not Installed. A card shows the name and the description of the extension. An extension can bring several palettes. Each card has one button:

If an extension has a file that Macterm cannot read, its card shows a warning. Macterm reads the extensions of the repository when you open the pane, at most one time each hour. They do not depend on your version of Macterm. An extension that works keeps working after every update. If an extension needs a newer Macterm, the card says so. You can install it after you update. The built-in screens (Password Manager and Files) are not extensions and are not in the list.