Skip to content

Feature request: 割注自訂格式與顯式分割的可逆語法支援 #85

Description

@Iktahana

Request

Please support reversible, author-defined warichu formatting while keeping existing [[warichu:content]] documents compatible. Token names, AST fields, and encoding are intentionally left to maintainers.

  • Automatic or explicit splitting with saved split positions.
  • Font size, number of lines, small-line spacing, brackets, and necessary formatting.
  • Distinguish authored settings from transient renderer calculations.
  • Preserve settings through parse, serialize, save, reopen, clipboard, and export.
  • Consistent Rust, WASM, Node, mdast, and plugin behavior; old syntax remains valid.

The current automatic layout work retains the existing grammar/AST, uses grapheme-based estimates with indivisible ruby/tcy/no-break content, and does not persist visual splits. Custom formatting is a future feature.

Future Illusions UI acceptance criteria

A modeless window with native title bar; on macOS only close is enabled (no minimize, maximize, or resize). Changing size, line count, split position, and spacing immediately relayouts a draft preview. Preview never mutates the document or triggers saving. Cancel discards everything; Apply submits only the final content/settings in one undoable transaction. Add runtime regression tests for immediate preview, cancel with zero writes, and commit only on Apply. Automated windows always use show:false.

No local metadata or private syntax should pre-implement this proposal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions