I'm trying to write a command similar to the 'paste-url' command (open
clipboard/selection in new buffer), but which searches for the text in the
selection/clipboard instead.
I tried two things:
(1) // use M-y to google current selection in new buffer
interactive("search-for-selection", "search for selection in new buffer",
$browser_object = 'google '+browser_object_paste_url
);
define_key(default_global_keymap, "M-y", "search-for-selection");
(2) // use M-y to google current selection in new buffer
interactive("search-for-selection", "search for selection in new buffer",
function (I) {
let searchsel = "google ";
searchsel.append = browser_object_paste_url;
$browser_object = searchsel;
});
define_key(default_global_keymap, "M-y", "search-for-selection");
But neither seems to work. Any suggestions?
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign
[ http://www.jnanam.net/slade/ ]
Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com
-----------------------------------------------------------------------------------------------------
*प*रो ऽक्ष॑का*मा* हि *दे*वाः
'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror