repl: Add ctrl-alt-enter binding to run in place (#15743)

Release Notes:

- Added `ctrl-alt-enter` keybinding for `repl::RunInPlace`
(`ctrl-option-enter` on MacOS). Keeps your screen position and cursor in
place when running any block.
This commit is contained in:
Kyle Kelley 2024-08-03 10:27:05 -07:00 committed by GitHub
parent b7eae7fbd9
commit f8234aec6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 29 additions and 11 deletions

View file

@ -479,7 +479,8 @@
{
"context": "Editor && jupyter && !ContextEditor",
"bindings": {
"ctrl-shift-enter": "repl::Run"
"ctrl-shift-enter": "repl::Run",
"ctrl-alt-enter": "repl::RunInPlace"
}
},
{

View file

@ -178,7 +178,8 @@
{
"context": "Editor && jupyter && !ContextEditor",
"bindings": {
"ctrl-shift-enter": "repl::Run"
"ctrl-shift-enter": "repl::Run",
"ctrl-alt-enter": "repl::RunInPlace"
}
},
{