Merge branch 'dev' into rc
This commit is contained in:
@@ -20,5 +20,6 @@ decorations = "None"
|
|||||||
[keyboard]
|
[keyboard]
|
||||||
bindings = [
|
bindings = [
|
||||||
{ key = "Insert", mods = "Shift", action = "Paste" },
|
{ key = "Insert", mods = "Shift", action = "Paste" },
|
||||||
{ key = "Insert", mods = "Control", action = "Copy" }
|
{ key = "Insert", mods = "Control", action = "Copy" },
|
||||||
|
{ key = "Return", mods = "Shift", chars = "\u001B\r" }
|
||||||
]
|
]
|
||||||
|
|||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
echo "Add Shift+Return keyboard binding for multi-line as used by Claude Code to Alacritty"
|
||||||
|
|
||||||
|
ALACRITTY_CONFIG=~/.config/alacritty/alacritty.toml
|
||||||
|
|
||||||
|
if [[ -f $ALACRITTY_CONFIG ]] && ! grep -q 'key = "Return"' "$ALACRITTY_CONFIG"; then
|
||||||
|
sed -i 's/{ key = "Insert", mods = "Control", action = "Copy" }/{ key = "Insert", mods = "Control", action = "Copy" },\n { key = "Return", mods = "Shift", chars = "\\u001B\\r" }/' "$ALACRITTY_CONFIG"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user