lotabout / skim

Fuzzy Finder in rust!
MIT License
5.1k stars 183 forks source link

Support OSC8 hyperlinks #499

Open dandavison opened 1 year ago

dandavison commented 1 year ago

Hi, thanks for skim! This feature request is analogous to https://github.com/junegunn/fzf/issues/2557 and https://github.com/junegunn/fzf/issues/2165. I'd like to be able to use OSC8 hyperlinks with skim, but I believe they are stripped out currently. My personal use case was going to be displaying strings with hyperlinks in the preview window. Here's an attempt at demonstrating the bug:

echo hello | sk --ansi --preview "bash -c \"printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n'\""

Fwiw, I notice that skim uses the vte state machine parser, which is what delta does also. In case it's useful, here is where delta handles OSC sequences in the vte::Perform trait.