()
| 279 | |
| 280 | @action |
| 281 | unindent() { |
| 282 | const lineStartCursors = this.cursorMap.getLineStartCursorsForCursorPosition(this.cursor) |
| 283 | |
| 284 | for (const startCursor of lineStartCursors) { |
| 285 | const unindentTarget = startCursor.listBlock.getUnindentTarget(startCursor.index) |
| 286 | if (unindentTarget) { |
| 287 | if (startCursor.listBlock.allowDelete()) { |
| 288 | startCursor.listBlock.childSet.removeChild(startCursor.index) |
| 289 | } |
| 290 | const newlineNode = getBlankFillForCategory(unindentTarget.listBlock.childSet.nodeCategory) |
| 291 | unindentTarget.listBlock.childSet.insertNode(newlineNode, unindentTarget.index) |
| 292 | return true |
| 293 | } |
| 294 | } |
| 295 | return false |
| 296 | } |
| 297 | |
| 298 | @action |
| 299 | insertNewlineOrUnindent() { |
no test coverage detected