MacBookPro.lan 2026-7-5:20:1:24
This commit is contained in:
+3
-2
@@ -1665,7 +1665,8 @@ class CreateNewItem {
|
||||
const childIsFolded = list.isFoldRoot();
|
||||
const endPos = list.getLastLineContentEnd();
|
||||
const endOfLine = cursor.line === endPos.line && cursor.ch === endPos.ch;
|
||||
const onChildLevel = listIsZoomingRoot || (hasChildren && !childIsFolded && endOfLine);
|
||||
const onChildLevel = this.after &&
|
||||
(listIsZoomingRoot || (hasChildren && !childIsFolded && endOfLine));
|
||||
const indent = onChildLevel
|
||||
? hasChildren
|
||||
? list.getChildren()[0].getFirstLineIndent()
|
||||
@@ -1689,7 +1690,7 @@ class CreateNewItem {
|
||||
list.addBeforeAll(newList);
|
||||
}
|
||||
else {
|
||||
if (!childIsFolded || !endOfLine) {
|
||||
if (this.after && (!childIsFolded || !endOfLine)) {
|
||||
const children = list.getChildren();
|
||||
for (const child of children) {
|
||||
list.removeChild(child);
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-outliner",
|
||||
"name": "Outliner",
|
||||
"version": "4.10.1",
|
||||
"version": "4.10.2",
|
||||
"minAppVersion": "1.11.7",
|
||||
"description": "Work with your lists like in Workflowy or RoamResearch.",
|
||||
"author": "Viacheslav Slinko",
|
||||
|
||||
Reference in New Issue
Block a user