Skip to content

Commit 83513ba

Browse files
Emphasize defaults for line movement actions (#25378)
Closes #25372 Release Notes: - N/A
1 parent b9ca240 commit 83513ba

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

assets/keymaps/default-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@
8484
"pageup": "editor::MovePageUp",
8585
"alt-pageup": "editor::PageUp",
8686
"shift-pageup": "editor::SelectPageUp",
87-
"home": "editor::MoveToBeginningOfLine",
87+
"home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }],
8888
"down": "editor::MoveDown",
8989
"pagedown": "editor::MovePageDown",
9090
"alt-pagedown": "editor::PageDown",
9191
"shift-pagedown": "editor::SelectPageDown",
92-
"end": "editor::MoveToEndOfLine",
92+
"end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
9393
"left": "editor::MoveLeft",
9494
"right": "editor::MoveRight",
9595
"ctrl-left": "editor::MoveToPreviousWordStart",

assets/keymaps/default-macos.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@
9191
"ctrl-l": "editor::ScrollCursorCenter",
9292
"alt-left": "editor::MoveToPreviousWordStart",
9393
"alt-right": "editor::MoveToNextWordEnd",
94-
"cmd-left": "editor::MoveToBeginningOfLine",
95-
"ctrl-a": "editor::MoveToBeginningOfLine",
96-
"home": "editor::MoveToBeginningOfLine",
97-
"cmd-right": "editor::MoveToEndOfLine",
98-
"ctrl-e": "editor::MoveToEndOfLine",
99-
"end": "editor::MoveToEndOfLine",
94+
"cmd-left": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }],
95+
"ctrl-a": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }],
96+
"home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }],
97+
"cmd-right": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
98+
"ctrl-e": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
99+
"end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }],
100100
"cmd-up": "editor::MoveToStartOfExcerpt",
101101
"cmd-down": "editor::MoveToEndOfExcerpt",
102102
"cmd-home": "editor::MoveToBeginning", // Typed via `cmd-fn-left`

0 commit comments

Comments
 (0)