Thanks Matthieu!
Ultimately that is what I was trying to do-open URI under cursor line.
I arrived at a similar solution. I will repost mine here, in case anyone
else finds it helpful.
class Redwood::ThreadViewMode
def open_link_at_cursor
BufferManager.flash "Extracting URL...#{'(turn text wrap off for better results)' if @wrap}"
line_text = get_textline_at_cursor
url = line_text.slice(URI::regexp)
spawn "chromium","--new-window", url,[:in, :out, :err] => "/dev/null" unless !url
BufferManager.flash "No URL found at cursor line" if !url
end
def get_textline_at_cursor
self[curpos].last.last.to_s
end
end
-Micah
Excerpts from Matthieu Rakotojaona's message of 2014-04-15 13:38:15 -0500: