Re: [gedit-list] Extend gedit to open URLs in default browser



At 17:13 -0500 2/6/08, Dave (My-IOP) wrote:
>I see others have asked for a URL Launcher to allow detection and launching in default browser of URLs within document (<http://live.gnome.org/Gedit/Plugins>http://live.gnome.org/Gedit/Plugins).
>
>I would like to have gedit work so that when the cursor is anywhere in a url (such as <http://www.ubuntuforums.org/>www.ubuntuforums.org, either beginning with "http://"; or just "www.") it can select that full URL automatically, pass the URL to the default browser, and if the browser is already open, open the URL in a new tab.
>
>(It would also be great if the functionality to open local documents the same way existed too.)

Have a look at the xdg-open command line tool, man xdg-open. I'm just getting used to gedit and I find it easier to copy and paste things like

xdg-open http://something/somewhere.html

from a gedit file into tcsh but there are some extensions to gedit - tools - that intend to execute such commands in a temporary instance of a shell. I haven't  made them work yet and it's likely that there are problems with environment variables.

I'm coming from Apple's MPW and BBEdit where one has editable worksheets of type TEXT from which shell commands can be selected and executed directly with the ENTER key. They then stay around for use again weeks later. Shell output appears below the executed command. Yeah I am studying the gedit source code with that in mind.

xdg-open needs a -a option to select an application including a different browser with which to open the designated file.

-- 

--> From the U S of A, the only socialist country that refuses to admit it. <--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]