Benature/obsidian-text-format

[FR] Format callout for muti-paragraphs

Benature opened this issue · 3 comments

Expectation 1

selected text:

line1
line2
line3
line4

result:

> [!NOTE] line1
> line2
> line3
> line4

Expectation 2

selected text:

line1

result:

> [!NOTE] line1
  • continuity:
    • last used
    • the last type in the current note
    • the last type before the cursor in the current note
    • fixed callout type
  • Detect if the selection is callout format already. If yes, then update the callout type as settings
  • The cursor should stay at the original place, not the end of the paragraph, unless select multi-lines