You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CONFIGURATION.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1200,6 +1200,47 @@ paste_keys = "shift+insert" # For Hyprland/Omarchy
1200
1200
- Letters: `a-z`
1201
1201
- Special: `insert`, `enter`
1202
1202
1203
+
### restore_clipboard
1204
+
1205
+
**Type:** Boolean
1206
+
**Default:**`false`
1207
+
**Required:** No
1208
+
**Applies to:** Paste mode only
1209
+
1210
+
When `true`, voxtype saves your clipboard content before transcription and restores it after the paste operation completes. This prevents your original clipboard content from being overwritten by the transcription.
1211
+
1212
+
**How it works:**
1213
+
1. Before transcription: Save current clipboard content (including MIME type for binary data)
1214
+
2. Copy transcribed text to clipboard
1215
+
3. Simulate paste keystroke
1216
+
4. After brief delay: Restore original clipboard content
1217
+
1218
+
**Example:**
1219
+
```toml
1220
+
[output]
1221
+
mode = "paste"
1222
+
restore_clipboard = true# Preserve original clipboard content
1223
+
```
1224
+
1225
+
**Note:** This only works in `mode = "paste"`. In `mode = "clipboard"`, the user manually pastes the content, so restoration would interfere with the intended workflow.
1226
+
1227
+
### restore_clipboard_delay_ms
1228
+
1229
+
**Type:** Integer
1230
+
**Default:**`200`
1231
+
**Required:** No
1232
+
**Applies to:** Paste mode only (when `restore_clipboard = true`)
1233
+
1234
+
Delay in milliseconds after the paste keystroke before restoring the original clipboard content. Increase this if the restoration happens too quickly and interferes with the paste operation. The default of 200ms works well for most applications including Electron apps (Slack, Discord, VS Code).
1235
+
1236
+
**Example:**
1237
+
```toml
1238
+
[output]
1239
+
mode = "paste"
1240
+
restore_clipboard = true
1241
+
restore_clipboard_delay_ms = 300# Longer delay for slower systems
Copy file name to clipboardExpand all lines: docs/USER_MANUAL.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1350,9 +1350,19 @@ mode = "paste"
1350
1350
**Cons**:
1351
1351
- Requires both wl-copy and ydotool
1352
1352
- Won't work in applications where Ctrl+V has a different meaning (e.g., Vim command mode)
1353
-
- Overwrites clipboard contents
1353
+
- Overwrites clipboard contents (unless clipboard restoration is enabled)
1354
1354
- No fallback behavior
1355
1355
1356
+
**Clipboard Restoration**: By default, paste mode overwrites your clipboard with the transcribed text. If you want to preserve your clipboard contents, enable clipboard restoration:
1357
+
1358
+
```toml
1359
+
[output]
1360
+
mode = "paste"
1361
+
restore_clipboard = true
1362
+
```
1363
+
1364
+
When enabled, voxtype saves your clipboard content before pasting, then restores it after a brief delay. This works with both text and binary clipboard content (images, files) on Wayland via `wl-paste`, and with text content on X11 via `xclip`. You can also enable it from the command line with `--restore-clipboard` or the `VOXTYPE_RESTORE_CLIPBOARD=true` environment variable.
0 commit comments