Skip to content

Shared Tasks 0.4.0-beta.20

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Oct 17:49
· 524 commits to main since this release

Shared Tasks 0.4.0-beta.20: the twentieth beta with shared sections, and
the candidate for 0.4.0.

A pre-release for testers through BRAT: the community directory and
Obsidian's own updates keep offering 0.3.x.

New since 0.4.0-beta.19

Moving a task by cut and paste keeps it whole. A task moved by cut
and paste could lose the hidden line that links it to the shared section
(in Source view, the <!-- lfcp-ref … --> line under it): the section
then said "A binding line of the section is damaged", and the move was not
sent. Two ways to cut it no longer do that:

  • with Shift+↓ from the start of a task's line when the next task is
    nested (in Live Preview the selection ends after that task's
    indentation): the nested task keeps its place, and the pasted task does
    not push the one it lands on under it;
  • with the mouse, selecting exactly the task's line from its end to its
    start (or start to end): the cut takes its hidden link line along, so the
    paste restores the same task where you put it.

Deleting a selected task line removes the task cleanly. Selecting a
task's whole line and pressing Backspace or Delete removed only its text
and left the hidden link line behind ("binding line damaged"). The task is
now deleted, for your collaborators too.

Tested before release. The full native suite on Obsidian 1.13.4 and
1.14.4, including two new checks with a real keyboard and mouse: moving a
task with Shift+↓ next to a nested task while a collaborator nests it, and
moving and deleting a task line selected with the mouse. Before these
fixes both checks showed the damaged binding line; now they pass, with the
other cut, paste and move checks.

A two-hour soak of 0.4.0-beta.19 (three editors, offline periods,
server restarts, a member removed and a new one invited) kept a change's
typical time flat at about 100 ms through about 5,000 changes (0.4.0-beta.18:
over a second after 3,300), and every reconnect under 13 seconds.

Requires Obsidian 1.13.4 or later.

What it is

The features of 0.4.0, described in 0.4.0.md: share a whole
section of a note ("Share section…"), with its tasks, paragraphs and lists,
end-to-end encrypted, each section its own collaboration. Shared sections
are on in this beta: there is nothing to turn on.

Before you install

No way back to 0.3.x on this device. The first start of 0.4 upgrades
Shared Tasks' sync data on the device and encrypts it at rest. A 0.3.x
plugin can no longer open it ("Shared Tasks could not start:
VersionError"); install 0.4.x again and the data is intact. Your notes are
not affected.

  • Try it in a test vault first, or keep a copy of your vault.
  • A collaborator still on 0.3.x cannot join a shared section; their shared
    tasks keep working with yours.
  • Collaborators on a shared section should all update to this beta. A
    member on a beta before 0.4.0-beta.14 can keep undoing the others' edits
    while their note is open, and a member on a beta before 0.4.0-beta.4
    keeps seeing "Needs your attention" after someone else chose Keep it
    deleted
    .

Install with BRAT

  1. Install BRAT from the community plugins.
  2. Run "BRAT: Add a beta plugin for testing" with openlfcp/obsidian. In
    the version field choose Latest version: a specific version stays
    installed, and BRAT will not update it.
  3. Enable Shared Tasks. Settings → Community plugins lists it as
    version 0.4.0-beta.20. If it lists an earlier version, see below.

If an earlier 0.4.0 beta is installed, BRAT updates it ("BRAT: Check for
updates to all beta plugins"); your identity, collaborations and settings
are kept.

Stuck on an older beta? In BRAT's settings, find openlfcp/obsidian in
the beta plugin list. If it shows a version, it is pinned there: edit it and
choose Latest version (or remove it and add it again with Latest
version), then run "BRAT: Check for updates to all beta plugins". BRAT's
setting "Select latest plugin version by default" saves choosing.

To turn shared sections off, quit Obsidian, add "sectionsDisabled": true
to .obsidian/plugins/shared-tasks/data.json, and start it again.

What to report

"Export diagnostics…" prepares a report without note text, names, paths,
keys or links, and shows it to you first. Attach it to an issue at
https://github.com/openlfcp/obsidian/issues with what you did and what you
saw.

Known limits

The limits of 0.4.0.md apply: about 200 tasks per
section is the qualified size, sections are read-only on mobile, and there
are no headings inside a section.

  • Rejoining a section you were removed from isn't supported yet. Your
    local copy stays on your device.
  • Project server quotas. The project server (sync.openlfcp.org)
    currently lets one identity host up to 200 collaborations (each shared
    section is one), up to 50 new ones a day from one network, 256 MiB of
    stored data in all and 128 MiB per collaboration. Past a limit, the
    action is refused with "quota exceeded"; nothing already shared is lost.
    These values may change, and the server's operator can set other limits
    for an identity. A server you run yourself sets its own.

Under the hood

  • In a section, a cut that ends inside the next line's leading
    indentation ends at that line's start, and a paste at a line's start
    leaves out the indentation its text ends with (cutKeepsIndent,
    pasteWithoutTrailingIndent).
  • A range from a line's start to the end of a bound Task's line (with or
    without its line break) takes that Task's own binding lines, never the
    lines under it (withBindingLines): a cut widens its selection before
    the editor copies it (a cut DOM handler), a delete widens the range it
    removes.
  • New native specs section-shift-down-cut and section-whole-line-cut
    (real keys and mouse in Live Preview): before the fixes they show the
    owner's damaged bindings, with them every binding keeps its line.
  • Unchanged: @openlfcp/* 0.2.0-beta.10, spec mvp-0.2-baseline.12, the
    reference server at 138030a, 49 fixtures.