Skip to content

Conversation

@makhnatkin
Copy link
Collaborator

@makhnatkin makhnatkin commented Mar 18, 2025

This PR enables moving only the explicitly selected list item(s) instead of the entire block that falls within the selection.
It calculates the exact block range, lifts any conflicting siblings if needed, and sinks the selected item deeper into the list hierarchy.

Example

Given the following list structure, if you select from bb to cc and press Tab:
initial-list

Before

The entire block is shifted:
sink-list-before

After

Only the selected content is shifted:
sink-list-after

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@makhnatkin makhnatkin force-pushed the feat/sink-only-selected-list-item branch from 53625eb to 89ba94c Compare March 24, 2025 17:47
@makhnatkin makhnatkin marked this pull request as ready for review March 24, 2025 18:13
@makhnatkin makhnatkin requested a review from d3m1d0v as a code owner March 24, 2025 18:13
@makhnatkin makhnatkin merged commit 6f54ee7 into main Mar 25, 2025
5 checks passed
@makhnatkin makhnatkin deleted the feat/sink-only-selected-list-item branch March 25, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants