Share your knowledge at the LQ Wiki.
Go Back > Blogs > uxrs75
User Name


Rate this Entry

URI Passing in Elinks

Posted 07-30-2010 at 01:45 PM by uxrs75
Tags browser, cli, elinks

Programmes: elinks
Files to edit: ~/elinks/elinks.conf

URI passing allows a frame, link, or tab in elinks to be opened in another browser (say, Firefox, or Konqueror). It can be quite helpful when dealing with those sites that have not yet embraced the Any-Browser philosophy, or for which image-viewing (either consol- or X-based) does not work.

There are two ways to enable URI passing in elinks, the menu way, and the editor way. I'll be using the editor way here.

Start by opening elinks.conf in a text editor and add the graphical browsers you want to be able to pass URI's to. My current list looks like this (And there's still room for it to grow...):

set document.uri_passing.arora = "arora %c 2>/dev/null"
set document.uri_passing.chromium = "chromium %c 2>/dev/null"
set document.uri_passing.conkeror = "conkeror %c 2>/dev/null"
set document.uri_passing.dillo = "dillo %c 2>/dev/null"
set document.uri_passing.firefox = "firefox %c 2>/dev/null"
set document.uri_passing.hv3 = "hv3 %c 2>/dev/null"
set document.uri_passing.konqueror = "konqueror %c 2>/dev/null"
set document.uri_passing.midori = "midori %c 2>/dev/null"
set document.uri_passing.netsurf = "netsurf %c 2>/dev/null"
set document.uri_passing.opera = "opera %c 2>/dev/null"
set document.uri_passing.seamonkey = "seamonkey %c 2>/dev/null"
set document.uri_passing.uzbl-tabbed = "uzbl-tabbed %c 2>/dev/null"
set document.uri_passing.hv3 = "vimprobable2 %c 2>/dev/null"
Next, define the keybindings for at least one of the three methods of passing the URI to an external programme, which are as follows:
  • Pass URI of current frame to external command
  • Pass URI of current link to external command
  • Pass URI of current tab to external command

To do so, add a line similar to one (or more) of the following to your elinks.conf file, replacing the function keys with your desired keybinding:

bind "main" "F10" = "frame-external-command"  
bind "main" "F11" = "link-external-command"   
bind "main" "F12" = "tab-external-command"
When you are done, save the changes and exit. Now you'll be able to call a graphical browser to render the current elinks frame, link, or tab whenever you want.
Posted in how-to
Views 2263 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 06:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration