# Keyboard Shortcuts

## VSCode

| Shortcut        | Description               | VSCode Name                        | Custom shortcut? |
| --------------- | ------------------------- | ---------------------------------- | ---------------- |
| `⌘ + P`         | Go to file dialog         |                                    |                  |
| `⌘ + ⇧ + P`     | Shortcut dialog           |                                    |                  |
| `⌘ + ⇧ + /`     | Focus editor              | View: Focus Next Editor Group      | ✓                |
| `⌘ + ⇧ + T`     | Focus terminal            | Terminal: Focus Terminal           | ✓                |
| `⌘ + ⇧ + E`     | Focus file explorer       | View: Show Explorer                |                  |
| `⌘ + K , ↵`     | Keep editor page open     | View: Keep Editor                  |                  |
| `⌘ + K , ⌘ + W` | Close all open tabs       | View: Close All Editors            |                  |
| `⌘ + ⇧ + [`     | Next tab                  | View: Open Next Editor             |                  |
| `⌘ + ⇧ + ]`     | Prev tab                  | View: Open Previous Editor         |                  |
| `⌘ + ↓`         | Open editor from explorer |                                    | ✓                |
| `⌥ + ⌘ + C`     | Collapse explorer folders | File: Collapse Folders in Explorer | ✓                |
| `^ + -`         | Go back from definition   |                                    |                  |
| `^ + =`         | Go to definition          |                                    | ✓                |
| `^ + ⌥ + Z`     | Refresh git               | Refresh git                        | ✓                |

[Shortcuts reference](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf)

## Mac, Chrome etc

| Shortcut    | Description                                                | Custom shortcut?                                                     |
| ----------- | ---------------------------------------------------------- | -------------------------------------------------------------------- |
| `⌥ + ⌘ + →` | Chrome: Next tab                                           |                                                                      |
| `⌘ + W`     | Mac: Close current tab                                     |                                                                      |
| `⌘ + M`     | Mac: Minimize the current tab to dock                      |                                                                      |
| `⌘ + ⇥ + ↓` | Mac: Use the arrow keys to navigate and reopen closed tabs |                                                                      |
| `^ + ⌘ + ↑` | Mac: Expand window                                         | ✓ (Keyboard > Shortcuts > App Shortcuts > All Applications > 'Zoom') |

## Character Index

* `⌘` = Command
* `^` = Control
* `↵` = Enter
* `⇥` = Tab
* `⌥` = Option (/Alt)
* `↑` = Up key
* `↓` = Down key
* `←` = Left key
* `→` = Right key


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.robmurtagh.com/shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
