Skip to main content

Keyboard shortcuts

Default shortcuts

ActionWindows / LinuxmacOSAvailable when
GhostMap: RefreshCtrl+Alt+GCmd+Alt+GThe editor has focus

The other commands (Filter, Search, Reset) have no default shortcut. They are available from:

  • The command palette (Ctrl+Shift+P / Cmd+Shift+P), searching GhostMap: ....
  • The GhostMap panel toolbar, in the left side bar.

Assigning your own shortcuts

VS Code lets you assign any shortcut to any command:

  1. Open File → Preferences → Keyboard Shortcuts (Ctrl+K Ctrl+S / Cmd+K Cmd+S).
  2. Search GhostMap.
  3. Click the pencil next to the command, press the combination you want, Enter.

Commands available to bind:

CommandID
Refresh the active file's treeghostmap.refresh
Filter the tree by statusghostmap.filterByStatus
Search in the treeghostmap.search
Clear filters and searchghostmap.reset

Suggested shortcuts

If you use GhostMap daily, these usually work well:

[
{ "key": "ctrl+alt+s", "command": "ghostmap.search" },
{ "key": "ctrl+alt+f", "command": "ghostmap.filterByStatus" },
{ "key": "ctrl+alt+0", "command": "ghostmap.reset" }
]

Paste them into your keybindings.json (accessible from the palette: Preferences: Open Keyboard Shortcuts (JSON)).

These are not command shortcuts but prefixes you trigger with Tab inside a file:

PrefixResult
ghNamed Point Anchor (line //)
gwContextual Anchor (line //)
grRange Anchor (line //)
glNamed Point Anchor (line #)
gxlContextual Anchor (line #)
gxrRange Anchor (line #)

See Syntax for details.

Next step

Continue with Settings to customize the defaults.