Repository navigation
feat: #2994 add fixed indentation shortcuts and list body Tab input - #5906
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #2994
Summary
Tab at a caret inside list text previously moved the entire item, or did nothing in the first item. This PR separates body input from explicit indentation: Tab in list text inserts the existing configured input unit, while fixed bracket shortcuts adjust the current line or list level from any caret position.
Implementation
The editor checks applicability separately from mutation and dispatches fixed shortcuts to the same
editTab, list-movement, and paragraph-conversion operations used by Tab selections. Selection endpoints at an excluded item's start resolve against the preceding selected content, including after the endpoint has moved outside the selected list.No document fields, parser/serializer changes, desktop shortcut configuration, or new settings are introduced. Source mode already has the matching CodeMirror bindings. The source-whitespace preservation work tracked by #2189 remains deferred.
Validation
cedtests skipped because this isolated worktree was installed without native build scripts, matching CI's documented skip condition.