File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
packages/web/src/content/docs Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -112,3 +112,44 @@ You can disable a keybind by adding the key to your config with a value of "none
112112 }
113113}
114114```
115+
116+ ---
117+
118+ ## Shift+Enter
119+
120+ 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.
121+
122+ ### Windows Terminal
123+
124+ Open your ` settings.json ` at:
125+
126+ ```
127+ %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
128+ ```
129+
130+ Add this to the root-level ` actions ` array:
131+
132+ ``` json
133+ "actions" : [
134+ {
135+ "command" : {
136+ "action" : " sendInput" ,
137+ "input" : " \u001b [13;2u"
138+ },
139+ "id" : " User.sendInput.ShiftEnterCustom"
140+ }
141+ ]
142+ ```
143+
144+ Add this to the root-level ` keybindings ` array:
145+
146+ ``` json
147+ "keybindings" : [
148+ {
149+ "keys" : " shift+enter" ,
150+ "id" : " User.sendInput.ShiftEnterCustom"
151+ }
152+ ]
153+ ```
154+
155+ Save the file and restart Windows Terminal or open a new tab.
You can’t perform that action at this time.
0 commit comments