Repository navigation
fix(outliner): outdenting a selection over 2 levels never moves a block deeper - #13608
Closed
yuxi-liu-wired wants to merge 1 commit into
Closed
yuxi-liu-wired wants to merge 1 commit into
yuxi-liu-wired wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 1 flag
Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 6, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 8, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 11, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 13, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 16, 2026
…ck deeper indent-outdent-blocks outdented the selected blocks with a take-while that stopped only at a block whose parent is the target's parent. A selected block already above the first one's level (a2x and b, b at the top) was taken too and moved after a2, one level deeper; default outdenting then moved b's old right siblings c and d under it, 2 levels deeper (db-test logseq#1319). Only the selected blocks under the first one's parent go out a level.
yuxi-liu-wired
force-pushed
the
fix/outdent-two-levels
branch
from
October 16, 2026 18:34
f8cd161 to
9f5d820
Compare
Contributor
Author
|
Combined with the other PRs that change the same files into #13783. |
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.
Fixes logseq/db-test#1319.
On a page with blocks a (children a1; a2 with child a2x), b, c, d: click a2x, Shift+click b, press Shift+Tab. Expected: a2x goes out 1 level, after a2 under a; b, c and d stay. Actual: the page reads a (a1, a2, a2x, b (c, d)): b goes 1 level deeper, into a, and c and d, which were not selected, 2 levels deeper, under b. With "Logical outdenting" on, b still goes into a.
indent-outdent-blocksindeps/outliner/src/logseq/outliner/core.cljstakes the blocks to outdent with atake-whilethat stops only at a block whose parent is the target's parent. b is above that level, so it is taken too and moved after a2; default outdenting then moves b's old right siblings, c and d, under it.The
take-whilenow takes only the selected blocks under the first one's parent (both the default and theparent-originalbranch). A selected block already above that level stays where it is: Shift+Tab never moves a block deeper.New test
test-outdent-selection-over-2-levels(default and logical outdenting): it fails on master and passes with the change.frontend.modules.outliner.core-test(with its ^:long random indent/outdent test),frontend.worker.undo-redo-testandfrontend.handler.editor-testpass.