Philip Wittamore wrote:

> It's not perfect, but it works.
>
> I added the following settings in .xressources:
>
> URxvt.perl-ext-common:    default,matcher
> URxvt.url-launcher:       st -e lynx $0
> URxvt.keysym.C-Delete:    matcher:select
> URxvt.matcher.pattern.1: (\w+\:\/\/\S+)
>
> Links are now underlined, and
> control-delete activates the select mode, enter launches the
> application to open the link. I don't know if it's possible
> to open a link in the same instance of lynx.

I haven't investigated those settings, but it appears that
'URxvt.url-launcher' gives a command to be run.  If there's a way to
tell it to instead emit characters into the existing terminal (as if
typed by the user on their keyboard), getting it to emit 'g $0 <enter>'
would do the job.  'g' for Lynx 'go to URL', then paste in the URL --
voila, link followed in same instance of Lynx.

This is probably doable even if 'url-launcher' can only start new
programs.  Have it run a program which injects the desired string
'g$0<enter>' into the parent terminal's input queue.  Which would be
tricky, but probably doable.

>Bela<

Reply via email to