This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This diff implements the `unTab` operation for nested lists. It covers the following four cases (refer to the diagrams below for a better explanation): 1. Block is not nested => do nothing 2. Block is first child => move as previous sibling of parent 3. Block is last child => move as next sibling of parent 4. Block is neither the first nor the last child => split the block at the child, keep previous children on original parent, move block as next sibling of parent & add the new block with the next children as its next sibling. 1 - 3 => {F138170258} 4 => {F138170261} **TODO:** Still figuring out the correct paradigm for dealing with the block's children when the first nested block is un-nested & will add behaviors + test cases for that in the next diff. Reviewed By: vdurmont Differential Revision: D9757713 fbshipit-source-id: 01796b003acbfcfcc6fa8d5f6f4576d4f2a13ec6
- Loading branch information
1 parent
8bb9c6c
commit 77e6844
Showing
3 changed files
with
1,588 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.