Skip to content

Commit 643fca7

Browse files
test(web): cover tab-separated parents and multiline chips when nesting
Both review round-1 reviewers asked for these: they guard the tab-stop padding arithmetic and the chip skip in the upward scan. The user guide now says Shift+Enter on an empty nested item moves out one level first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 9b9c0c8 commit 643fca7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/composer-list-continuation.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ describe("composer list indentation", () => {
7272
it.each([
7373
["1. parent\n2. child", "1. parent\n 1. child"],
7474
["10. parent\n11. child", "10. parent\n 1. child"],
75+
["1.\tparent\n2. child", "1.\tparent\n 1. child"],
76+
['1. @"file\n 9. name"\n2. child', '1. @"file\n 9. name"\n 1. child'],
7577
])("nests %j as a first child and keeps the caret on its text", (value, expected) => {
7678
const cursor = value.lastIndexOf("child") + 2;
7779
const edit = listIndentForTab(value, cursor, cursor)!;

‎docs/user/composer.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ block. What you typed is what the agent receives, markers and numbering
2222
included, and `#1234` without a space still looks up a pull request.
2323

2424
Enter sends. In a list or quote, **Shift+Enter** continues it, and Shift+Enter
25-
on an empty line leaves it; **Tab** nests a list item. In a code block, Enter
25+
on an empty line moves out one level, then leaves it; **Tab** nests a list item
26+
under the one above. In a code block, Enter
2627
starts a new line at the current indentation, **Tab** and **Shift+Tab** indent
2728
the selected lines, and a closing ` ``` ` followed by Enter, or two blank lines
2829
at the end, leave the block. **Backspace** at the start of a code block turns it

0 commit comments

Comments
 (0)