Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a terminal emulator (extension or app) that does link resolution for local paths?

In particular when I see things like:

/home/sam/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/sam/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/sam/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'

I would like to be able to click on:


To open the file.

share|improve this question

migrated from stackoverflow.com Feb 2 '13 at 0:37

This question came from our site for professional and enthusiast programmers.

Emacs + ffap, maybe? Not sure how much work it would be to set up. – Gilles Feb 2 '13 at 2:12

Here is a simple script to help put local file names into a format which are ctl-clickable from within Gnome-Terminal.

function asURL() {
        sed "s*^*$PREFIX*" |
        sed 's/ /%20/g'; 
find "$@" | asURL


furl *.pdf
furl -name \*.pdf
share|improve this answer

urxvt supports clickable links.

share|improve this answer
I cleaned up your first link target. Also, the configuration your second link points to doesn't handle links to local files, which OP apparently wants. While this is easy to add, you should detail this in your post. – ephemient Jul 21 '09 at 1:27
ephemient: thanks for changing to the real link :) – Luca Matteis Jul 21 '09 at 1:28
Yerp this is the only one that I could get to work. Its pretty tricky to set up. – Sam Saffron Jul 21 '09 at 2:34
How did you get it to work then? I am having the same problem, but the second links is unreachable at the moment – freddyb Jan 18 '13 at 17:59

gnome terminal (Ubuntu's default terminal app) has that feature.

share|improve this answer
Would you know how I activate it for local links ? – Sam Saffron Jul 21 '09 at 1:33
I think you could use the gnome configuration editor, see en.wikipedia.org/wiki/Gconf-editor -- or Mandrake's gconfpref, etc etc. No access to ubuntu right now (I'm at OSCON and my laptop's a mac;-) so I can't give detailed GUI-use tips. – Alex Martelli Jul 21 '09 at 1:55

You can sort-of accomplish what you want using xargs, gnome-open, and a simple script to filter the text so that the trailing detritus is removed. Basically, you could do something along the lines of:

compile | filtererrors | xargs gnome-open

Of course, you would have to write your own "filtererrors" program, but that shouldn't be too hard. Just read in each line. Find the first index of ':', and then print the line up to and excluding that index.

share|improve this answer

That looks like output to feed to vim -q, so in screen, you could map something that takes a hard copy of the screen and spawns a new screen window with vim -q on that file (where you can click all you want). For instance, add:

bind E eval hardcopy "screen zsh -c 'vim -q =(grep -E \^/.\*:\[0-9\]+: hardcopy.*(om[1]))'"

To your ~/.screenrc

And type Ctrl-AE to bring up a vim to browse those errors.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.