# Keyboard shortcuts

Sanchay is made to be used from the keyboard. Each shortcut works in one of three places:

- **Anywhere:** in any app, even when the panel is closed. Ctrl+Alt+V opens or closes the panel, Alt+Shift+V pastes the newest item as plain text, and Ctrl+Alt+P opens Paste as… for the newest item. You can also set keys to open Settings, and to edit or close the copy card while it shows.
- **In the panel:** while the panel is open, keys paste, pin, name, edit, filter and more.
- **While editing:** while you edit a copy's text, on the card or in the panel.

## Change any shortcut

From version 1.2.0, every shortcut that works anywhere and every command in the panel can be changed in **Settings → Keyboard shortcuts**, with up to two keys each. The keys for moving around the panel (the arrows, Enter, Esc, Tab and Backspace) and the editing keys stay as they are.

1. Open **Settings → Keyboard shortcuts**. Search for what you want, or find it under Anywhere, In the panel or While editing.
2. Choose the shortcut and press the new keys. Sanchay shows a preview, with a warning if something is in the way.
3. Choose **Save**, or press Esc to cancel.

A changed shortcut shows a dot and a **Reset** button. **Restore all defaults** puts every shortcut back, after you confirm.

## What Sanchay won't accept

- **Keys another action already has:** the message names that action.
- **Anywhere:** a shortcut needs two modifier keys, such as Ctrl+Alt, or the Windows key. Windows' own shortcuts and accessibility shortcuts are refused, and so is a combination that types a character on your keyboard layout; the message names the character.
- **In the panel:** a shortcut is Ctrl or Alt with a key, or F1 to F24. Plain letters type into the search, so they're never shortcuts, and neither are the search box's Ctrl+A, C, V, X, Z and Y, or Alt+F4, Alt+Space and Alt+Tab.
- **Keys another program holds:** Sanchay says so, and suggests combinations that are free.

## Win+V

To open Sanchay with Win+V, turn off Windows' own clipboard history first, in Windows Settings → System → Clipboard, then set Win+V as the panel shortcut.

## Every shortcut

| What it does | Keys | Where it works |
|---|---|---|
| Open the panel, or close it | Ctrl+Alt+V | Anywhere |
| Paste the newest item as plain text | Alt+Shift+V | Anywhere |
| Paste the newest item in a form you pick | Ctrl+Alt+P | Anywhere |
| Open Settings | No key | Anywhere |
| Close the copy card, while one shows | No key | Anywhere |
| Edit the copy card's text, while one shows | No key | Anywhere |
| Paste the newest item just as you copied it (Windows' own) | Ctrl+V | Anywhere |
| Paste the selected item as plain text | Shift+Enter | In the panel |
| Open "Paste as…" for the selected item | Alt+Enter or Ctrl+Enter | In the panel |
| Copy the selected item without pasting it | Ctrl+Shift+C | In the panel |
| Delete the selected item (Delete, with the search empty) | Delete | In the panel |
| Pin or unpin the selected item | Ctrl+P | In the panel |
| Open the selected item in its own app | Ctrl+O | In the panel |
| Edit the selected item's text | Ctrl+Shift+E | In the panel |
| Name the selected item | F2 or Ctrl+E | In the panel |
| Show everything (clear the filters) | Ctrl+1 | In the panel |
| Show pinned items only | Ctrl+2 | In the panel |
| Choose several kinds: a click adds a kind instead of switching | Ctrl+3 | In the panel |
| Open the list of kinds | Alt+G or Alt+T | In the panel |
| Choose how the chosen kind is shown | Alt+W | In the panel |
| Open Settings | F1 or Ctrl+, | In the panel |
| Paste the selected item | Enter | In the panel |
| Move through the list | ↑ or ↓ | In the panel |
| Open or close the selected item (with the search empty, or the cursor at its end) | → | In the panel |
| Next or previous kind | Tab or Shift+Tab | In the panel |
| Add or remove a kind instead of switching | Ctrl+Click | In the panel |
| Open an item, or close it with another click | Click | In the panel |
| Paste that item | Double click | In the panel |
| Drop the last filter (with the search empty) | Backspace | In the panel |
| Go to the filter row and the More menu; the arrows move, Enter picks | F6 | In the panel |
| Close the panel, or what is open in it | Esc | In the panel |
| Finish editing; it's already saved | Esc or Ctrl+S or Ctrl+Enter | While editing |
| Start a new line | Enter | While editing |
| Undo the last change | Ctrl+Z | While editing |
| Redo what was undone | Ctrl+Y | While editing |
| In the name field: Enter keeps the name, Esc leaves it as it was | Enter or Esc | While editing |

The same lists are in Sanchay, in **Settings → Keyboard shortcuts**, and in the panel under **⋮ → Keyboard shortcuts**.
