fix(query): continue innermost list item with exact indent on enter - #2699
Open
youssefadly237 wants to merge 6 commits into
Open
fix(query): continue innermost list item with exact indent on enter#2699youssefadly237 wants to merge 6 commits into
youssefadly237 wants to merge 6 commits into
Conversation
youssefadly237
requested review from
Enter-tainer and
Myriad-Dreamin
as code owners
August 26, 2026 10:56
youssefadly237
marked this pull request as draft
August 26, 2026 21:01
youssefadly237
marked this pull request as ready for review
August 27, 2026 00:31
youssefadly237
marked this pull request as draft
August 27, 2026 01:27
some pedantic & nursery
youssefadly237
marked this pull request as ready for review
August 27, 2026 07:51
- Use the nearest enclosing list/enum item's actual indent as the dedent target instead of hardcoded 2 bytes, so 4-space or tab indents dedent to the correct parent level. Falls back to stripping two indent characters when no parent item exists. - Make the fallback char-based (strip_indent_units) so multi-byte whitespace can never be sliced mid-character. - Tests: list_dedent_4space, list_dedent_fallback, list_dedent_unicode fixtures + unit test for strip_indent_units.
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.
enteris pressed in whitespace after nested listsWIPI hope)other problems I found
manual listing expand to
+instead of keeping the count1. something| // suppose that | is the cursor clicking enter would produce 1. something + |this link is outdated and mentioned in the file (twice)
nvim port https://github.com/youssefadly237/dotfiles/blob/typst-enter/dot_config/nvim/lua/custom/typst-on-enter.lua
thanks for maintaining tinymist
AI assisted: opencode2 glm-5.3-flash
0x Alpha Free(when it was available XD)