2 Answers
2

The only think I could think of is if you write some sort of program using GPM and a simple programming language that can implement GPM. Then if you use this, you could replace the ls file in your binary folder (probably either /bin or /usr/bin) with this program (in compiled form).

urxvt has a plugin interface that enables this kind of interaction. One of the standard plugins provides clickable URLs directly in the terminal. These plugins are Perl scripts, and it would surely be in the scope to do something close to what you want.

Easy would be to let fully specified paths open with the WM default application.

Harder would be to let relative links understand their directory context (perhaps reading $PWD), but it would also be possible.