[elinks-users] Elinks and Local Shell Links

Nigel Hamilton nigel at turbo10.com
Sat Jan 7 13:08:08 PST 2006


> configuration, but that is too complex for me ;):
>
> 	application/x-plugvi;   plugvi %s; needsterminal
>
> and the following in ~/.mime.types:
>
> 	application/x-plugvi    plugvi
>
> and I put the following in the plugvi script:
>
> 	#!/bin/bash
> 	arg="${1%%.plugvi}"
> 	file=${arg%%~*}
> 	line=${arg##*~}
> 	vi "$file" +"$line"
>
> You probably want to also disable the mime.mailcap.ask option so that it
> gets run when you follow the link.
>
> Then you just make links like the following:
>
> 	<a href="/path/to/file.c~11.plugvi">file.c line 11</a>
>
> and it should work. :)
>
>> 	Fingers crossed I can solve my problem ... without needing a new
>> feature though ...
>
> Well, one feature was needed but it was only a few lines, so...
>

Brilliant!!

Thanks heaps. I certainly can't complain about the level of support here!

(-;

NIge




More information about the elinks-users mailing list