|
1 | 1 | [ |
2 | | - { |
3 | | - "id": "001-osc8-markdown-links", |
4 | | - "file": "node_modules/@mariozechner/pi-tui/dist/components/markdown.js", |
5 | | - "intent": "Wrap markdown links in OSC 8 hyperlink sequences so they are clickable and copy-pasteable even when they wrap across multiple terminal lines.", |
6 | | - "find": "if (token.text === token.href || token.text === hrefForComparison) {\n result += this.theme.link(this.theme.underline(linkText)) + stylePrefix;\n }\n else {\n result +=\n this.theme.link(this.theme.underline(linkText)) +\n this.theme.linkUrl(` (${token.href})`) +\n stylePrefix;\n }", |
7 | | - "replace": "if (token.text === token.href || token.text === hrefForComparison) {\n result += `\\x1b]8;;${token.href}\\x07` + this.theme.link(this.theme.underline(linkText)) + `\\x1b]8;;\\x07` + stylePrefix;\n }\n else {\n result +=\n `\\x1b]8;;${token.href}\\x07` + this.theme.link(this.theme.underline(linkText)) + this.theme.linkUrl(` (${token.href})`) + `\\x1b]8;;\\x07` +\n stylePrefix;\n }", |
8 | | - "verify": "\\x1b]8;;${token.href}\\x07", |
9 | | - "occurrences": 1 |
10 | | - }, |
11 | | - { |
12 | | - "id": "002-osc8-tracker-state", |
13 | | - "file": "node_modules/@mariozechner/pi-tui/dist/utils.js", |
14 | | - "intent": "Add OSC 8 hyperlink URL tracking to AnsiCodeTracker so wrapTextWithAnsi re-opens hyperlinks on continuation lines when a link wraps across multiple terminal lines.", |
15 | | - "find": " fgColor = null; // Stores the full code like \"31\" or \"38;5;240\"\n bgColor = null; // Stores the full code like \"41\" or \"48;5;240\"\n process(ansiCode) {\n if (!ansiCode.endsWith(\"m\")) {\n return;", |
16 | | - "replace": " fgColor = null; // Stores the full code like \"31\" or \"38;5;240\"\n bgColor = null; // Stores the full code like \"41\" or \"48;5;240\"\n oscHyperlink = null; // Stores the current OSC 8 hyperlink URL\n process(ansiCode) {\n // Track OSC 8 hyperlink sequences: \\x1b]8;;URL\\x07 or \\x1b]8;;\\x07 (close)\n const oscMatch = ansiCode.match(/\\x1b\\]8;([^;]*);([\\s\\S]*)(?:\\x07|\\x1b\\\\)/);\n if (oscMatch) {\n this.oscHyperlink = oscMatch[2] || null;\n return;\n }\n if (!ansiCode.endsWith(\"m\")) {\n return;", |
17 | | - "verify": "oscHyperlink = null;", |
18 | | - "occurrences": 1 |
19 | | - }, |
20 | | - { |
21 | | - "id": "003-osc8-tracker-reset", |
22 | | - "file": "node_modules/@mariozechner/pi-tui/dist/utils.js", |
23 | | - "intent": "Clear OSC 8 hyperlink state when AnsiCodeTracker is reset.", |
24 | | - "find": " this.fgColor = null;\n this.bgColor = null;\n }\n /** Clear all state for reuse. */", |
25 | | - "replace": " this.fgColor = null;\n this.bgColor = null;\n this.oscHyperlink = null;\n }\n /** Clear all state for reuse. */", |
26 | | - "verify": "this.oscHyperlink = null;\n }\n /** Clear all state for reuse. */", |
27 | | - "occurrences": 1 |
28 | | - }, |
29 | | - { |
30 | | - "id": "004-osc8-tracker-getactivecodes", |
31 | | - "file": "node_modules/@mariozechner/pi-tui/dist/utils.js", |
32 | | - "intent": "Include OSC 8 hyperlink opener in getActiveCodes() so wrapped lines re-open the clickable link.", |
33 | | - "find": " if (codes.length === 0)\n return \"\";\n return `\\x1b[${codes.join(\";\")}m`;\n }", |
34 | | - "replace": " const sgrPrefix = codes.length === 0 ? \"\" : `\\x1b[${codes.join(\";\")}m`;\n const oscPrefix = this.oscHyperlink ? `\\x1b]8;;${this.oscHyperlink}\\x07` : \"\";\n return oscPrefix + sgrPrefix;\n }", |
35 | | - "verify": "const oscPrefix = this.oscHyperlink", |
36 | | - "occurrences": 1 |
37 | | - }, |
38 | | - { |
39 | | - "id": "005-osc8-tracker-hasactivecodes", |
40 | | - "file": "node_modules/@mariozechner/pi-tui/dist/utils.js", |
41 | | - "intent": "Include OSC 8 hyperlink in hasActiveCodes() check so the tracker knows there is active state to restore.", |
42 | | - "find": " this.fgColor !== null ||\n this.bgColor !== null);", |
43 | | - "replace": " this.fgColor !== null ||\n this.bgColor !== null ||\n this.oscHyperlink !== null);", |
44 | | - "verify": "this.oscHyperlink !== null);", |
45 | | - "occurrences": 1 |
46 | | - }, |
47 | 2 | { |
48 | 3 | "id": "007-osc8-codespan-urls", |
49 | 4 | "file": "node_modules/@mariozechner/pi-tui/dist/components/markdown.js", |
|
0 commit comments