Relay Comments

by Relay.md
5
4
3
2
1
Score: 37/100

Description

Add comments and suggested edits to Relay in Obsidian

Reviews

No reviews yet.

Stats

4
stars
1,560
downloads
2
forks
89
days
17
days
18
days
6
total PRs
2
open PRs
3
closed PRs
1
merged PRs
2
total issues
1
open issues
1
closed issues
159
commits

Latest Version

18 days ago

Changelog

Relay Comments 0.5.1 fixes repeated sidebar redraws during terminal output and improves cleanup when the plugin is disabled.

Fixes

  • Keep Reply buttons and message menus usable while Lean Terminal or other unrelated views update.
  • Release editor callbacks and plugin state on disable while preserving open notes, selections and undo history.
  • Remove stale task-checkbox listeners when editor widgets are reused.
  • Close the review sidebar on the first click when a thread is selected.
  • Release Canvas listeners, cards and placement state when their views close.
  • Preserve comments added through the CLI across Canvas undo and redo when a user history snapshot is still pending.
  • Place CLI comments after a line’s block syntax so headings and other block structures remain intact.

Performance

  • Avoid duplicate sidebar rebuilds when selecting, editing or replying to a thread.

Full Changelog: https://github.com/No-Instructions/Relay-Comments/compare/0.5.0...0.5.1

README file from

Github

Relay Comments

Comments and suggested edits for Obsidian.

Relay Comments brings Google-Docs-style review to Obsidian. Comments and suggested edits are written into the Markdown file as CriticMarkup, and diff and sync with the note.

Comments

Collaborators' comments appear in your note as they write them.

A comment arrives in a daily note, is read from the hover preview, and gets a reply

Suggestions

Accept or reject in place, or accept everything at once when the review is done.

Hovering a suggested replacement shows Accept and Reject; accepting rewrites the text in place

The sidebar

The sidebar lists the note's comments, suggestions, and highlights. Resolving a thread removes its markup from the note.

Opening the review sidebar and resolving a thread, which removes its card and its markup in the note

Identity

Relay Comments integrates with Relay and Obsidian Sync to provide user identity.

You can also add identities to the plugin's data.json. Each entry maps an ID to a name, a picture, and a color. This allows an agent to self-register its identity:

{
  "identities": [
    {
      "id": "mqvxlopr0ocsmgv",
      "name": "Shelly",
      "picture": "https://avatars.relay.md/?seed=as235jcgbe",
      "color": "#7c3aed"
    }
  ]
}

The data.json file is automatically reloaded on change.

Readers without a matching identity see the inline author field as the name.

Agents

The relay-comments skill teaches agents to use CriticMarkup as well as monitor notes for comments to respond inline.

Canvas

Place pins to add spatial feedback about the canvas layout. Comment on nodes or their contents.

A canvas card gets a comment from its right-click menu, then a freestanding pin lands between two cards

Privacy

Relay-comments does not make any network requests or have any client-side telemetry.

Format

Review state is CriticMarkup:

Mark Syntax
Addition {++inserted text++}
Deletion {--removed text--}
Replacement {~~old~>new~~}
Highlight {==marked text==}
Comment {>>comment text<<}

Comments also attach to Obsidian's native ==highlight== syntax.

The author is stored in the comment:

{==the passage==}{{authorId="j4n8b2x0q7m1zk5" author="Bongo Cat">>Can we ground this sooner?<<}}

Installation

Install Relay Comments from the Obsidian community plugin catalog.

Development

npm install
npm run check   # typecheck src/
npm run build   # typecheck + produce main.js

Unit tests live in tests/unit/; npm test runs them. See CONTRIBUTING.

License

MIT