Keyboards and Mice (was Model M, NEC ProSpeed)
spc at conman.org
Wed Jun 1 18:41:51 CDT 2016
It was thus said that the Great Liam Proven once stated:
> On 1 June 2016 at 17:48, Chuck Guzis <cclist at sydex.com> wrote:
> > I'm keyboard-oriented--Ctrl-V, where I've copied using Ctrl-X or
> > Control-C .
> The neat thing about middle-click-to-paste-selection is that it's *as
> well as* the clipboard C&P.
> So you can, for instance, highlight a URL, hit Ctrl-C to copy,
> highlight the page title, switch windows, middle-click to paste the
> title, then Ctrl-V to paste the URL too.
> *All in a single operation.*
> It's /very/ handy and worth learning if only for that reason alone.
An interesting thing about Firefox on Linux  is that once you select
the text of a webpage, you have some interesting options:
Those are the selection types available via X Windows . "text/html"
returns the HTML of the selected portion of the page. "text/x-moz-url" will
return the URL of the page. "UTF8_STRING" will return the selected text as
UTF-8 encoded data.
Because of this, I wrote a command line program to query the current
selection (assumed to be a webpage) and obtain not only the selected
portion, but the URL and from there, request the page to extract the title
element . All in a single command.
-spc (The X Selection method is quite flexible)
 Or used to be; I haven't done this since I switched to using Mac
OS-X for web browsing.
 I won't go into depth of how this works right now---just be aware
that you can chose what type of data to obtain from the selection
 A typical operation when blogging about a web page.
More information about the cctech