# Keyboard shortcuts

Papiers uses the same shortcut layout on Mac, Windows, and Ubuntu. Most shortcuts use `⌘` on Mac and `Ctrl` on Windows and Ubuntu.

## Desktop app

### Navigation

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Command palette | `⌘K` | `Ctrl+K` |
| Quick Open | `⌘P` | `Ctrl+P` |
| Open search / ask | `⌘⇧P` | `Ctrl+Shift+P` |
| Add to library | `⌘N` | `Ctrl+N` |
| Open a PDF from disk | `⌘O` | `Ctrl+O` |
| Switch Library ⇄ Workspace | `⌘⇧L` | `Ctrl+Shift+L` |

### Workspace

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Close tab | `⌘W` | `Ctrl+W` |
| Previous tab | `⌘⇧[` | `Ctrl+Shift+[` |
| Next tab | `⌘⇧]` | `Ctrl+Shift+]` |
| Return to last-used tab | `Ctrl+Tab` | `Ctrl+Tab` |
| Cycle tabs backwards | `Ctrl+Shift+Tab` | `Ctrl+Shift+Tab` |
| Show or hide sidebar | `⌘B` | `Ctrl+B` |
| Split document pane | `⌘\` | `Ctrl+\` |
| Focus first pane | `⌘⌥1` | Mac only |
| Focus second pane | `⌘⌥2` | Mac only |
| Open the document’s note | `⌘E` | `Ctrl+E` |
| Exit focus mode | `Esc` | `Esc` |

### Reading

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Find in document | `⌘F` | `Ctrl+F` |
| Screenshot Capture | `⌘⇧S` | `Ctrl+Shift+S` |
| Highlight selection in a PDF | `⌘⇧H` | `Ctrl+Shift+H` |
| Show or hide context chips | `⌘⇧;` | `Ctrl+Shift+;` |
| Add another passage to context | `Shift` + select | `Shift` + select |
| Copy selection | `⌘C` | `Ctrl+C` |
| Leave Screenshot Capture | `Esc` | `Esc` |

### Chat

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Send and ask for a reply | `Enter` | `Enter` |
| Send quietly | `⌘Enter` | `Ctrl+Enter` |
| Queue a message while a reply is generating | `Enter` | `Enter` |
| New line | `Shift+Enter` | `Shift+Enter` |
| Add a document or note | `@` | `@` |
| Clear context | `Esc` | `Esc` |

### Search

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Open search / ask from anywhere | `⌘⇧P` | `Ctrl+Shift+P` |
| Return focus to the search field | `/` | `/` |
| Open the selected result | `Enter` | `Enter` |
| Ask Papiers | `Enter` with no result selected | `Enter` with no result selected |
| Close | `Esc` | `Esc` |

### Presentations

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Previous slide | `←` | `←` |
| Next slide | `→` | `→` |

## Chrome extension

The Chrome extension has its own shortcut for opening the Papiers palette.

| Action | Mac | Windows / Ubuntu |
| --- | --- | --- |
| Open Papiers | `⌘⇧K` | `Ctrl+Shift+K` |
| Move through commands | `↑` / `↓` | `↑` / `↓` |
| Run selected command | `Enter` | `Enter` |
| Close | `Esc` | `Esc` |

The browser shortcut can be changed at `chrome://extensions/shortcuts` if it conflicts with another extension or website.

Source: https://wiki.papiers.ai/docs/keyboard-shortcuts
