Editors: write a comment on lines of a pull request in Revue, opened from your code editor #81
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some code editors can't ask for a comment's text themselves. Zed's extensions are headless (no input box, no panel), so the Zed companion (thatrichan/revue-companion#5) can only offer Revue: Add Pending Comment as a code action that hands the lines to Revue. Today
revue LINK --file PATH --line Nopens the pull request at that file and line, but the user then has to find the line and open the comment box themselves.Ask
revue LINK --file PATH --line N [--start-line M] [--side LEFT|RIGHT] --write-commentopens the pull request at that file, scrolled to those lines, with the comment box open on them and focused, the same box Revue's own diff opens on those lines. What's written there becomes a pending comment (a draft / part of the pending review), as when written in Revue.--commentgives them (--line,--start-line,--side), so a companion uses the same values for both.LINK --file … --line ….editor Nlevel inrevue --version, so companions only offer it when Revue can do it.docs/command-line.md→ "What editors can ask" documents it.Tests
The parsed request (lines, side), opening at a line in a hunk vs outside, and the editor level.