Commit 9ce6abe
authored
feat(terminal): open .md file links in built-in markdown viewer (#45)
* feat(terminal): add clickable file path links
File paths in terminal output are now highlighted and clickable.
Supports absolute, relative, bare, and @Scoped paths with :line:col
suffixes. Trailing punctuation is stripped. An onFileLink callback
prop allows parent components to handle specific file types.
* feat(terminal): open .md file links in built-in markdown viewer
Clicking a .md file link in the terminal opens it in a resizable
markdown viewer dialog with syntax highlighting. Cmd+click opens
the file externally instead. Non-.md files always open externally.
---------
Co-authored-by: maskar <Maskar@users.noreply.github.com>1 parent 21701eb commit 9ce6abe
5 files changed
Lines changed: 317 additions & 133 deletions
File tree
- electron
- ipc
- src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
455 | 466 | | |
456 | 467 | | |
457 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments