Skip to main content

Shortcuts and configuration

Keyboard shortcuts​

These work in every view while the canvas has focus:

ShortcutAction
VNext view: layout, schematic, symbol, and around to layout
Shift+VPrevious view, around the same cycle
OOpen a cell
Cmd+NCreate a cell in the current module (also while a text field has focus)
Cmd+Shift+RRename the open cell (also while a text field has focus)
FFit the view to the canvas
UUndo (in the source buffer)
Ctrl+RRedo
Arrow keysPan
Cmd/Ctrl++ / -Zoom in or out
:Focus the Neovim command line, where :Argon arguments complete with Tab
Cmd+BackslashSwitch between the canvas and Neovim (on Linux, Super+Backslash)
Ctrl+Shift+DShow diagnostics
Ctrl+Shift+MShow messages
BackspaceUndo the last point or edge picked by the active tool
EscCancel the current operation or clear the selection
EnterConfirm or finish the current operation

With argone --terminal, Neovim runs in its own terminal, and Ctrl+Backslash switches between the GUI and that terminal instead.

While Neovim has focus, keys go to Neovim, except for the shortcuts that work everywhere: Cmd+Q, Cmd+S, Cmd+N, Cmd+Shift+R, Cmd+Backslash, Ctrl+Shift+D, and Ctrl+Shift+M. Cmd+V pastes the clipboard into Neovim, and other Cmd combinations reach Neovim as <D-…> keys. Ctrl+Backslash reaches Neovim too, so Ctrl+Backslash Ctrl+N leaves terminal mode in :terminal. Neovim draws with the font in guifont, using the first installed font in the list, and honors linespace.

In the layout view:

ShortcutAction
RRectangle tool
PPolygon tool
SSelect mode
DDimension tool
QEdit the selected item
IPlace an instance
0, 1, *Draw the hierarchy as boxes, one level, or in full

In the schematic view:

ShortcutAction
SSelect
R, Shift+RRotate or mirror the selection, or the element being placed
EDescend into the selected instance
Shift+EReturn to the cell above
IPlace a schematic instance
MPlace a device
WWire
/Flip the bend of the wire segment being drawn
PAdd a port
LAdd a net label
QEdit the selection's properties
Delete, BackspaceDelete the selection; in a drawing tool, Backspace drops the last click
EnterEnd the wire being drawn at a new net label
EscDrop the wire being drawn, leave the tool, or clear the selection
Cmd+C, Cmd+VCopy the selection; paste it at the pointer

In the symbol view:

ShortcutAction
SSelect
LLine
PPolygon
RRectangle
CCircle
AArc
TText
NPin, for the next port without one
TabPick another port for the pin tool
X, Shift+XRotate or mirror the selection about its center
QEdit the selection's properties
Delete, BackspaceDelete the selection; in a drawing tool, Backspace drops the last click
EnterFinish the line or polygon being drawn
EscDrop the shape being drawn, leave the tool, or clear the selection
Cmd+C, Cmd+VCopy the selected items; paste them at the pointer

Configuration​

Argon reads $XDG_CONFIG_HOME/argon/config.toml, or ~/.config/argon/config.toml if that variable isn't set.

[gui]
dark_mode = true
hierarchy_depth = 3
icon_size = 20
font_size = 14
option_as_meta = false

[log]
level = "info"

[agent]
approval = "never"

font_size and icon_size are in logical pixels, from 1 to 256. On macOS, Option types characters such as ß in Neovim; set option_as_meta = true to send it as Meta (<M-…>) instead. On Linux, Alt always sends Meta. agent.approval is "never" or "always"; see Agents. After editing the file, run :Argon reload. To change a value for this session only, use :Argon set; to write the current settings back to disk, use :Argon saveConfig.

Troubleshooting​

The open cell is invalid after a signature change​

Press O and reopen it with arguments that match the new signature. Argon won't guess values for new parameters.

Something won't move​

A solid edge or an existing dimension is already fixing that coordinate. An initial value can't override a constraint.

You need more detail on an error​

Run :Argon diagnostics and :Argon log. For more, set log.level = "debug" and reload the configuration.

The GUI didn't start​

If the window stays at "Starting the analyzer…", or the GUI doesn't open with --terminal, check that argon-analyzer and argone are on your PATH, the buffer's file ends in .ar, and the library has Argon.toml and lib.ar. With --terminal, then run :Argon gui.