Command palette
The command palette runs commands by name. To open it, press Ctrl+K (Cmd+K on macOS) or choose Help > Command Palette. A search box reading “Type a command…” appears over the canvas.
For example, to open Structure Settings without the menu, press Ctrl+K, type struct, and press Enter.
Using the palette
Section titled “Using the palette”- Press Ctrl+K.
- Type part of a command’s name, such as
pngorderive, or the first letters of its words, such asstrset. - To move through the results, press Up arrow and Down arrow. The first result is selected when the list appears.
- To run the selected command, press Enter, or click any result.
The line under the results says what the highlighted result does. It is the same text as the card that appears when you hover over that command in its menu, its tool button, or its setting in the Properties panel.
Page Up and Page Down move eight results at a time. When the search box is empty, Home and End go to the first and last result; when it has text, they move the text cursor.
Esc closes the palette without running anything. Each result shows its menu category, and its shortcut when it has one. The letters that matched what you typed are in bold.
Recent commands
Section titled “Recent commands”With the search box empty, the palette lists up to five commands you ran from it most recently under Recent, newest first, and then every command under All commands. Commands you run often also rank a little higher in search results, among results that match equally well.
The palette keeps this list in your browser, not in your documents or your account. Another browser or computer has its own list.
What it lists
Section titled “What it lists”Every command in the menu bar is in the palette, with its menu’s name as the category (File, Edit, View, and so on). Commands inside a submenu carry the submenu’s name as a prefix, so the Lewis entry of the Derive View submenu reads “Derive View: Lewis”. The palette does not list itself.
A few entries exist only in the palette:
| Entry | What it does |
|---|---|
| Select Tool, Bond Tool, Ring Tool, and the other tool entries | Switch to that tool. The list covers Select, Pan, Bond, Ring, Eraser, Text, Arrow, Line, Shape, Bracket, Lone Pair, Radical, Orbital, Charge, Projection, and LaTeX. |
| Element Colors | Opens the Color Scheme Editor. See Color schemes. |
| Template Browser | Opens the template browser (Shift+T). See Template browser. |
| Periodic Table | Opens the periodic table so you can choose any element. |
| Toggle Animation Mode | Turns animation mode on or off (Shift+A). |
The Orbital Tool entry’s shortcut is Shift+O, because plain O sets oxygen.
Properties panel settings
Section titled “Properties panel settings”When something is selected, every setting the Properties panel shows for it is also in the palette, with the category Properties. Each one is named by its group and its label, such as Stroke: Width or Atom label: Size.
To go to a setting, type its name and press Enter. The palette opens the panel and the setting’s group if they are folded, scrolls to the setting, outlines it for a moment, and puts the keyboard focus on it.
To set a value without going to the panel, type the setting’s name and then the value:
| You type | The first result | What it does |
|---|---|---|
head size 14 |
Set Head Size to 14 | Sets a number. A value outside the setting’s range offers nothing. |
style dashed |
Set Stroke: Style to Dashed | Picks a choice from a list, by its name or the start of it. |
show label off |
Set Atom label: Show label to off | Turns a switch on or off. on, yes, show, off, no, and hide all work. |
Press Enter to set it. The change is one step for Undo, as when you set it in the panel. Colors and settings made of several parts, such as a color with its own opacity, cannot be set this way; their entries take you to the setting instead.
To type a value, you can also press Tab on a highlighted setting: the palette writes its name in the search box, ready for the value.
A setting the selection does not have is not listed. When your search finds nothing else, the palette says what to select: for example, typing head size with an atom selected shows “Head Size is not available now: Select an arrow first.”
Structure settings and presets
Section titled “Structure settings and presets”Every row of Structure Settings is in the palette as Structure settings: and the row’s name, such as Structure settings: Bond Length. Press Enter on one to open Structure Settings on the right tab with that row focused and outlined. As with the Properties settings, type a value after the name to set it at once: line cap round gives Set Structure settings: Line Cap to Round, and bond length 30 sets the bond length. These rows appear only when you search; the empty palette does not list them.
Each built-in preset is an entry too, such as Structure preset: ACS 1996. Running it opens Structure Settings and chooses the preset in its Preset menu, so it works exactly as choosing it there does, including the question about resizing objects with sizes of their own. See Structure settings and Structure presets.
Molecules by name
Section titled “Molecules by name”Type a molecule’s name, such as caffeine or ammonia, and the palette lists Insert caffeine after the commands that match. These come from Molkit’s built-in molecules, so they appear as you type, without a connection. At most five are listed.
Press Enter on one to open Insert by Name or SMILES with the molecule already looked up and its picture shown. Press Enter again, or click Insert, to add it to the canvas. See Insert by name or SMILES.
When nothing in the palette matches, the last result is Look up ”…” by name. It opens the same window and looks the text up there: the built-in molecules first, then PubChem. The palette asks PubChem only when you press Enter on this entry, never while you type.
Molkit Script lines
Section titled “Molkit Script lines”With Molkit Script, you can run one line of script from the palette. Type > and then the line, such as > draw caffeine. Without Molkit Script on your account, the palette says so and runs nothing.
- Press Ctrl+K and type
>. - Type the line. Below it, the palette lists what can come next: the commands at the start of the line, then names, options, and their values, as the script console does. The line under the list explains the highlighted one.
- To take the first suggestion, press Tab. To take another, highlight it and press Enter.
- To run the line, highlight the first row, which shows the whole line, and press Enter.
When the line runs, the palette closes, and Undo takes back everything the line did in one step. When the line has an error, nothing changes, the palette stays open, and the error appears above the line so you can fix it.
For more than one line, use the script console. See Molkit Script.
Search results
Section titled “Search results”The palette finds a command when the letters you type appear in its name in the same order, in groups that each start a word of the name: strset is “str” from Structure and “set” from Settings. Each group but the last has two or more letters, unless you type only first letters (ss). Capitals do not matter. For example:
| You type | The palette finds |
|---|---|
struct |
Structure Settings, Validate Structure, and the other commands with “structure” in their names |
strset or ss |
Structure Settings |
png export |
Export PNG (words in any order) |
cas |
Insert by Name or SMILES, through its alternative names |
exprot |
Export commands: a word of 4 or more letters with one letter wrong, missing, extra, or swapped still finds the word |
kekule |
Display: Aromatic Display: Kekulé (accents do not matter) |
Results are ordered by how well they match. Letters next to each other rank higher than letters spread out, and a match at the start of the name ranks higher than one later in it. An alternative name typed in full ranks with the name matches. Commands that match only by their menu name or by part of an alternative name come after every name match, so typing file also lists the rest of the File menu.
A search shows at most 50 results; to narrow the list, type more letters. With no match, the palette reads “No matching commands”. Signs such as & and brackets in what you type are ignored, so show formula & weight finds Show Formula & Weight.
The palette lists only the menu commands you can use at that moment. It leaves out commands the menus hide in the current document, such as Export LaTeX Animation when the document has no LaTeX animation. It also leaves out Structure menu commands that are unavailable for the current selection.
When a command you cannot use now matches what you typed at least as well as the best command you can use, the palette says so instead of leaving it out, with the reason when there is one: for example, typing 3d on an empty canvas shows that 3D View is not available now, and why. These notes are listed first, at most three.