summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven T. Cramer <[email protected]>2025-12-20 01:27:21 +0700
committerGitHub <[email protected]>2025-12-19 12:27:21 -0600
commitd7db57e8e10ba8318d6c1cb83a9753a57b26e7d7 (patch)
treeb56b1784fc1a8b7c9928b0bec0db7b8c927f1ef4
parent943fbf39a333ab4182e6f598c89f995d5063dbe1 (diff)
downloadopencode-d7db57e8e10ba8318d6c1cb83a9753a57b26e7d7.tar.gz
opencode-d7db57e8e10ba8318d6c1cb83a9753a57b26e7d7.zip
docs: add Windows Terminal Shift+Enter configuration guide (#5788)
-rw-r--r--packages/web/src/content/docs/keybinds.mdx41
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/keybinds.mdx b/packages/web/src/content/docs/keybinds.mdx
index d9e99cd03..35610af51 100644
--- a/packages/web/src/content/docs/keybinds.mdx
+++ b/packages/web/src/content/docs/keybinds.mdx
@@ -112,3 +112,44 @@ You can disable a keybind by adding the key to your config with a value of "none
}
}
```
+
+---
+
+## Shift+Enter
+
+Some terminals don't send modifier keys with Enter by default. You may need to configure your terminal to send `Shift+Enter` as an escape sequence.
+
+### Windows Terminal
+
+Open your `settings.json` at:
+
+```
+%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
+```
+
+Add this to the root-level `actions` array:
+
+```json
+"actions": [
+ {
+ "command": {
+ "action": "sendInput",
+ "input": "\u001b[13;2u"
+ },
+ "id": "User.sendInput.ShiftEnterCustom"
+ }
+]
+```
+
+Add this to the root-level `keybindings` array:
+
+```json
+"keybindings": [
+ {
+ "keys": "shift+enter",
+ "id": "User.sendInput.ShiftEnterCustom"
+ }
+]
+```
+
+Save the file and restart Windows Terminal or open a new tab.