Files
wekan/docs/Features/Editor/Multiline.md
T
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00

3.3 KiB

Multiline titles and creating several items

What it is

A title can have several lines. When you add a card, list, swimlane or board you choose whether the lines stay one title with line breaks, or whether each line becomes an item of its own - paste ten lines, get ten cards.

Read more

How to use it

Every new card, list, swimlane and board title field has an always-visible Add many lines as: radio group directly below it, even before typing:

  • 1 Card, 1 List, 1 Swimlane or 1 Board keeps the whole text as one title containing line breaks. This is the default.
  • Many Cards, Many Lists, Many Swimlanes or Many Boards creates a separate item from each nonempty line. Blank lines are skipped and pasted order is preserved.

For example:

  1. Paste:

    Plan the work
    Build the feature
    Check the result
    
  2. Choose Many Cards to create three cards, or 1 Card to keep a three-line title. The same choice applies to lists, swimlanes and boards.

  3. Use the form's Add/Save button to submit. Card creation keeps the selected labels, members and other creation options. Wait for creation to finish before submitting again.

List and swimlane rename fields also accept line breaks. Renaming always edits the existing item; it does not split it into multiple items. Multiline names are displayed in list/swimlane headers as well as on minicards.

Boards are created sequentially; the last board opens after the batch completes. Each board uses the creation settings, including a selected workspace and the existing default-template or starred-board flow.

How the numbers are calculated

From models/lib/multilineTitles.js:

  • Lines. The text is split at \r\n, \r or \n; each line is trimmed and empty lines are dropped (splitTitleLines()), so the number of items is the number of non-blank lines. With 1 ... the whole text, with \r\n turned into \n and trimmed, is one title (creationTitles()).
  • Order. titleSortIndexes(previous, next, count) gives the new items sort values between their neighbours: 0 .. count-1 on an empty list; next - count + i before the first item; previous + i + 1 after the last; and between two items previous + (next - previous) * (i + 1) / (count + 1), evenly spaced.

How it works in WeKan

Commits