Add support for hyperlinks in preview window
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run

Close #2165
This commit is contained in:
Junegunn Choi committed 2024-08-14 08:51:34 +09:00
1 parent 2c8a96bb27
commit d90a969c00
6 files changed
+80 -10

No files matched your search

+8
View File
@@ -1118,6 +1118,14 @@ func (w *LightWindow) setBg() string {
return "\x1b[m"
}
func (w *LightWindow) LinkBegin(uri string, params string) {
w.renderer.queued.WriteString("\x1b]8;" + params + ";" + uri + "\x1b\\")
}
func (w *LightWindow) LinkEnd() {
w.renderer.queued.WriteString("\x1b]8;;\x1b\\")
}
func (w *LightWindow) Fill(text string) FillReturn {
w.Move(w.posy, w.posx)
code := w.setBg()