hzeller / timg

A terminal image and video viewer.
GNU General Public License v2.0
1.91k stars 73 forks source link

How about implementing [hyperlink support](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) #132

Open hoclun-rigsep opened 6 months ago

hoclun-rigsep commented 6 months ago
          How about implementing [hyperlink support](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda), like how coreutils ls does? That way it would be possible to use the already existing grid functionality, and each file would be clickeable. The only requirement would be to use a terminal that supports hyperlinks

Originally posted by @Sonico98 in https://github.com/hzeller/timg/issues/29#issuecomment-1345467174

I am sure a lot of us use timg with kitty. Support for making the image or the title a hyperlink would be a real force multiplier for me and I imagine others!

hzeller commented 4 months ago

where would the link go ? Or would you like to be able to use c-escape codes in --title ?

hoclun-rigsep commented 4 months ago

Or would you like to be able to use c-escape codes in --title ?

That would work for me; I could hack a function or alias to make the title a hyperlink to the image. The comment I quoted upthread envisionsed making the image itself a hyperlink but of course you'd know better than I what would go into doing that.

hoclun-rigsep commented 3 days ago

I am not much of a C hacker but if one were to point me to the place in the code where this could be managed I might be able to take a crack at it.