Review mode in the page: the reviewer's links as its own commit, the links list, removing a link for good
/autolink review, the default with a model, sends each scan's new candidates to the reviewer and makes the approved links at once as one commit by "reviewer" (tag review; u takes it back). Rejected ones are kept, not drawn. Without a model, on a failed call or at a job's cap, everything stays a suggestion and the status line says why. A browser still on the old default, suggest, moves to review once; a mode chosen with /autolink is kept. S now opens the links list beside the text: every link found or made, rejected and pending, with who decided and the reviewer's reason; 1 2 3 (or a click) toggle linked · rejected · pending, rejected hidden at first. y links a row (also one the reviewer rejected), n declines one or removes a link, Y links all pending shown, Enter goes to the words. Declines kept without a target show the phrase. D on a link, Remove the link in its menu and /unlink now also decline its words in the node, in the same commit, so the scanner and the reviewer do not put it back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
46b48d3497
commit
825f9beb65
10 files changed
+779
-132
No files matched your search
+5
-4
@@ -118,7 +118,8 @@ export function selectionEntries(c: SelCtx, act: Act): Entry[] {
|
||||
c.suggestion && key(act, `Link to ${c.suggestion}`, "y", { sub: "a suggested link" }),
|
||||
c.suggestion && key(act, "Decline the suggestion", "n"),
|
||||
(c.link || c.note) && !c.article && key(act, c.link ? "Retarget…" : "Link it…", "w"),
|
||||
(c.link || c.note) && key(act, c.link && !c.note ? "Remove the link" : "Delete the note", "D"),
|
||||
(c.link || c.note) && key(act, c.link && !c.note ? "Remove the link" : "Delete the note", "D", c.link && !c.note ? { sub: "and do not link these words again here" } : {}),
|
||||
c.link && c.note && !c.article && { t: "item", label: "Remove the link, keep the note", keyText: "/unlink", run: () => act.command("/unlink") },
|
||||
SEP,
|
||||
...lenses(act),
|
||||
SEP,
|
||||
@@ -225,7 +226,7 @@ export function articleRowEntries(title: string, panes: boolean, act: Act): Entr
|
||||
|
||||
export interface TopCtx {
|
||||
view: "auto" | "column" | "panes";
|
||||
autolink: "suggest" | "on" | "off";
|
||||
autolink: "review" | "suggest" | "on" | "off";
|
||||
auto: boolean;
|
||||
speculate: boolean;
|
||||
curves: boolean;
|
||||
@@ -249,11 +250,11 @@ export function topEntries(c: TopCtx, act: Act): Entry[] {
|
||||
key(act, "Undo", "u"),
|
||||
key(act, "Redo", "U", { disabled: !c.canRedo }),
|
||||
SEP,
|
||||
c.doc && key(act, "Review suggested links", "S"),
|
||||
c.doc && key(act, "Links found: review and reverse", "S"),
|
||||
c.doc && { t: "item", label: "Find links in this document", keyText: "/linkdoc", run: () => act.command("/linkdoc") },
|
||||
SEP,
|
||||
{ t: "choices", label: "Layout", options: [view("auto"), view("column"), view("panes")] },
|
||||
{ t: "choices", label: "Links found", options: [auto("suggest", "suggest"), auto("on", "link sure"), auto("off", "off")] },
|
||||
{ t: "choices", label: "Links found", options: [auto("review", "review"), auto("suggest", "suggest"), auto("on", "link sure"), auto("off", "off")] },
|
||||
setting("Reconcile after edits", "auto", c.auto),
|
||||
setting("Write ahead while reading", "speculate", c.speculate),
|
||||
c.panes && setting("Curves between panes", "curves", c.curves),
|
||||
|
||||
Reference in new issue
Block a user