- 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 !
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:
-
Paste:
Plan the work Build the feature Check the result -
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.
-
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,\ror\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\nturned into\nand trimmed, is one title (creationTitles()). - Order.
titleSortIndexes(previous, next, count)gives the new items sort values between their neighbours:0 .. count-1on an empty list;next - count + ibefore the first item;previous + i + 1after the last; and between two itemsprevious + (next - previous) * (i + 1) / (count + 1), evenly spaced.
How it works in WeKan
- The radio group is the
multilineTitleChoicetemplate in client/components/forms/multilineTitleChoice.jade (add-many-lines-as, andmany-itemsfor "Many ..."), included by every new-item form. - The forms create the items one after another with the sort values above.
- Tests: tests/multilineTitles.test.cjs.