Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

Keyboard Bindings and Shortcuts

AGR is built to be driven from the keyboard, and every shortcut is customizable. This page lists the default shortcuts and explains how to change them.

Ctrl and Cmd

Throughout AGR, the main modifier key is written as Shortcut. It maps to Ctrl on Linux and Windows, and to Cmd on macOS. So "Shortcut+Enter" means Ctrl+Enter on Linux and Windows, and Cmd+Enter on a Mac. The tables below use Ctrl for short.

Presets

AGR groups shortcuts into presets, so you can start from a familiar editor's keys. The available presets are:

  • IntelliJ - the default.
  • AGR - AGR's own baseline.
  • VS Code
  • Vim
  • Emacs

A preset only changes the keys where that editor differs; everything else keeps AGR's baseline. Choose a preset in the Key Bindings dialog (below).

Changing Shortcuts

Open the editor from Help > Key Bindings. In the dialog you can:

  • Browse every action, grouped by category.
  • Click an action and press a new key combination to rebind it. If the combination is already used by another action in the same context, AGR warns you.
  • Pick a preset to load a whole set at once.
  • Import or export a key map to share it or back it up.
  • Reset to return to the defaults.

Your bindings are saved to ~/.agr/keybindings.yaml, and a change takes effect immediately - no restart.

Default Shortcuts

Application

Action Shortcut
Exit AGR Ctrl+Q
Documentation F1
Key Bindings dialog (unbound)
About dialog (unbound)

Running and output

Action Shortcut
Run submission Ctrl+Enter
Clear output Ctrl+L

Code editor - moving the caret

Action Shortcut
To line start Home
To line end End
Back one character Left
Forward one character Right
Back one word Ctrl+Left
Forward one word Ctrl+Right
To document start Ctrl+Home
To document end Ctrl+End
Up one line Up
Down one line Down
Up one page Page Up
Down one page Page Down

Code editor - editing

Action Shortcut
Delete previous character Backspace
Delete next character Delete
Delete current line Ctrl+Y (IntelliJ preset)
Delete to line end Ctrl+K
Delete to line start Ctrl+U
Select all Ctrl+A

Font size

Action Shortcut
Increase font size Ctrl+=
Decrease font size Ctrl+-
Reset font size Ctrl+0

Font size is remembered per pane (code, output, history), so you can size each one to taste.

Autocomplete popup

Action Shortcut
Trigger completion Ctrl+Space
Accept item Enter
Next item Down
Previous item Up
Dismiss popup Esc

Snippet fields

When you accept a completion that inserts a snippet with fill-in fields, these keys move between the fields. They are fixed and not rebindable.

Action Shortcut
Next field Tab
Previous field Shift+Tab
Cancel snippet Esc

History

Action Shortcut
Recall selected command Enter