Adjust editor: open excerpts split
key binding
#23646
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The pattern in Zed and in other editors is to use
cmd
to modify some file-opening action to open it in a split rather than in the current pane.click
opens a file, and acmd-click
opens it in a splitenter
opens the file, and acmd-enter
opens it in a splitIt makes sense to me that if
alt-enter
opens a file from the excerpt, thatcmd-alt-enter
opens it in a split, following the pattern above.Note: I'm not auto-merging this, as others might disagree.
Note: I didn't touch the Vim binding.
Release Notes:
editor: open excerpts split
key binding tocmd-alt-enter
on macOS andctrl-alt-enter
on Linux.