[Lynx-dev] [SOLVED] copy URL to clipboard shortcut

2020-04-21 Thread s18
On 4/21/20 12:03 PM, Fadi Barbàra wrote:
> xclip -i -selection clipboard

did it! thanks a lot.

would be greath (if not already somewhere?) to add this in the
documentation?

thanks again
all the best to us all.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
sorry

On 4/21/20 4:20 AM, s...@stof999.ch wrote:
> On 4/21/20 1:55 AM, Fadi Barbàra wrote:

> i added .lynx$ cat external
> EXTERNAL:http:echo -n %s|xclip -i:TRUE

xclip wasn't installed.
but after installing
there is still nothing in clipboard
???

thanks

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
On 4/21/20 1:55 AM, Fadi Barbàra wrote:
> Hi,
> I do not know what is the use case, but I assume something like:
> - you are in a page P
> - you want to copy the url of the page you are in
> - you want to paste that URL in an external application

exactly!

> 
> For that to work with external you need a file `$HOME/.lynx/external` in your 
> PC _if_ your lynx has been compiled with the option external.

i added .lynx$ cat external
EXTERNAL:http:echo -n %s|xclip -i:TRUE
EXTERNAL:http:wget %s:TRUE
EXTERNAL:http:mpv %s:TRUE
EXTERNAL:http:git clone %s:TRUE
EXTERNAL:http:links -g %s:TRUE
EXTERNAL:http:chrome %s:TRUE

and get with '.' in lynx

   w3m https://cmdt.ch/  │
 │ wget https://cmdt.ch/ │
 │ wget -r https://cmdt.ch/  │
 │ x-www-browser https://cmdt.ch/│
 │ echo -n https://cmdt.ch/|xclip -i │
 │ wget https://cmdt.ch/ │
 │ mpv https://cmdt.ch/  │
 │ git clone https://cmdt.ch/│
 │ links -g https://cmdt.ch/ │
 │ chrome https://cmdt.ch/

choosing
echo -n https://cmdt.ch/|xclip -i

is doing nothing (at least nothing in clipboard).
wget for example is working.
???

and where are the the other entries coming from (w3m, ...)?

but this external things is greath!
thanks a lot

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
On 4/20/20 11:43 PM, Ian Collier wrote:
> On Mon, Apr 20, 2020 at 08:46:42PM +0530, s...@stof999.ch wrote:
>> hi halaasz
>>> Well, one can assign a key to "TO_CLIPBOARD". I assign "S" to it.
>>> See the key-map, at first assigned to "k".
> 
>> i guess "TO_CLIPBOARD" is doing something with selected text?
> 
> No it is not; it is doing exactly what you asked for.

sorry
'^S' is assigned to TO_CLIPBOARD
but pressing ctrl+shift+s and paste it somewhere is filling
"TO_CLIPBOARD" [sic!]
not exactly what i like :)
???

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
hi russel
On 4/20/20 5:02 PM, russellb...@gmail.com wrote:
> 
>   I save links to my bookmark page, copy them from it.  It's
> also my start page.

it's an idea.
but since i'm often copy/paste URL for documention reason i need them in
the citation kontext and therefore bookmark page would be soon overcrowed.
and using '=', select URL, copy, concat takes about the same time.

so e.g. press 'S' and having the URL of the file
CURRENTLY VIEWING in the clipboard would be very easy :)

thanks

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
hi halaasz
On 4/20/20 7:35 PM, Halaasz Saandor via Lynx-dev wrote:
> 2020/04/20 02:41 ... s...@stof999.ch:
>> it would be greath to have a shortcut for copying the URL of the file
>> currently viewing INTO clipboard.
> 
> Well, one can assign a key to "TO_CLIPBOARD". I assign "S" to it.
> See the key-map, at first assigned to "k".

i guess "TO_CLIPBOARD" is doing something with selected text?
if so, the problem isn't solved with long URL. when using 'G' the URL is
truncated and can't be selected in whole.

or do i miss something?
thanks

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
hi fadi
On 4/20/20 4:08 PM, Fadi Barbàra wrote:
> Hi
> On Mon, Apr 20, 2020 at 12:11:11PM +0530, s...@stof999.ch wrote:
>> hi
>> it would be greath to have a shortcut for copying the URL of the file
>> currently viewing INTO clipboard.
> Have you tried using externals? 
> 
> If you compiled enabling them (I think the debian version has it compiled 
> that way by default) you can use a command like `echo %s|xclip -i -selection 
> clipboard` as an external. 
> 
> External can be accessed via '.' and ',' by default.

do i understand it correct: the external command is doing something with
selected text? select URL then '.'?
if so, the problem isn't solved with long URL. when using 'G' the URL is
truncated and can't be selected in whole.

or do i miss something?
thanks

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


[Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread s18
hi
it would be greath to have a shortcut for copying the URL of the file
currently viewing INTO clipboard.

there are some solutions in the web which not work (debian, lxde,
lxterminal)
or could be improved when having long URLs:
- 'g' the whole URL can't be selected
- '=' (information about current document) shows URL. select and copy
works, but the url must be concated when to long.

and btw:
i'm more and more browsing just with lynx. fast AND NO PIC!
thanks a lot.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev