Add newline above and improve newline below

Add a new action for inserting a new line above the current line. @ForLoveOfCats  also helped fix a bug among other things. When two collaborators had their cursors at the end of a line, and one collaborator performed a newline below action, the second collaborator's cursor would be dragged to the new line. This is also fixing that.

Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
This commit is contained in:
Petros Amoiridis
2023-04-19 19:57:23 +03:00
co-authored by Julia
parent c5e56a5e45
commit f9c60b98c0
7 changed files with 264 additions and 17 deletions
+1
View File
@@ -163,6 +163,7 @@
"context": "Editor && mode == full",
"bindings": {
"enter": "editor::Newline",
"cmd-shift-enter": "editor::NewlineAbove",
"cmd-enter": "editor::NewlineBelow",
"alt-z": "editor::ToggleSoftWrap",
"cmd-f": [