mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Fix shift-enter in search
If you want to type a newline in an auto_height editor, ctrl and ctrl-shift are your friends.
This commit is contained in:
parent
35400d5797
commit
807279208d
2 changed files with 4 additions and 2 deletions
|
@ -195,8 +195,8 @@
|
||||||
{
|
{
|
||||||
"context": "Editor && mode == auto_height",
|
"context": "Editor && mode == auto_height",
|
||||||
"bindings": {
|
"bindings": {
|
||||||
"shift-enter": "editor::Newline",
|
"ctrl-enter": "editor::Newline",
|
||||||
"cmd-shift-enter": "editor::NewlineBelow"
|
"ctrl-shift-enter": "editor::NewlineBelow"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -296,5 +296,7 @@ mod test {
|
||||||
cx.assert_editor_state("«oneˇ» one one one");
|
cx.assert_editor_state("«oneˇ» one one one");
|
||||||
cx.simulate_keystrokes(["enter"]);
|
cx.simulate_keystrokes(["enter"]);
|
||||||
cx.assert_editor_state("one «oneˇ» one one");
|
cx.assert_editor_state("one «oneˇ» one one");
|
||||||
|
cx.simulate_keystrokes(["shift-enter"]);
|
||||||
|
cx.assert_editor_state("«oneˇ» one one one");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue