Opening URLs from the keyboard
By Chous... on November 11, 2010 19:56 (imported from Google Code)
This is what I wrote to the mailing list:
For urxvt, there was a plugin that allowed me to open urls in the
terminal buffer without using the mouse. I would love to have this
feature in iTerm2 as well.
Given the new autocompletion mechanism, this sounds like something
that shouldn't be too dififcult to implement. Perhaps provide a means
of opening the autocompleted selection in a browser? Or at least a
quick way of copying it to the clipboard? (eg. by pressing cmd-c after
selecting the completion; perhaps cmd-o for "open"?)
Of course, most convenient for me would be if iTerm highlighted all
the URLs in the buffer and allowed me to press a number or a key to
open the one I want.
---
If you go the autocompletion -> open in browser route, then I suggest that whatever text was typed for the autocompletion to happen be erased after the URL is opened (it's not going to be used anyway). That is:
http<cmd-;> <select URL> <cmd-o (or whatever)> -> URL is opened and "http" is removed from the input buffer.
(sidenote: I would like it if you could scroll the autocompletion dialog by repeatedly hitting the shortcut)
(The issue type should be "enhancement", but there seems to be no way to do that in the issue reporting UI) :/