Add REPL support to Zed

This commit is contained in:
Max Bucknell 2024-09-05 10:07:26 +10:00
parent 6a61b5680c
commit a7a5399121
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -29,7 +29,8 @@
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"], "ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"], "ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"], "ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"] "ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"cmd-enter": "repl::Run"
} }
}, },
{ {
@ -39,7 +40,8 @@
"shift-d": ["workspace::SendKeystrokes", "d d"], "shift-d": ["workspace::SendKeystrokes", "d d"],
"-": ["workspace::SendKeystrokes", "d d p"], "-": ["workspace::SendKeystrokes", "d d p"],
"_": ["workspace::SendKeystrokes", "d d 2 k p"], "_": ["workspace::SendKeystrokes", "d d 2 k p"],
"= =": "editor::Format" "= =": "editor::Format",
"escape": "repl::ClearOutputs"
} }
}, },
{ {

View file

@ -7,6 +7,7 @@
// custom settings, run the `open default settings` command // custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu. // from the command palette or from `Zed` application menu.
{ {
"auto_update": false,
"theme": { "theme": {
"dark": "Github Dark", "dark": "Github Dark",
"light": "Github Light" "light": "Github Light"