[Conkeror] Search in Google the clipboard content with just one key

Daniel Clemente dcl441-bugs at yahoo.com
Thu Feb 5 09:50:58 PST 2009


  Hi, I want to share a code which allows you to search in Google your clipboard's contents. That means you copy any text (in X, you select it with the mouse), press a key (I have „l“), and you have the results page.


    interactive("search-clipboard-contents", "Search in Google the content of the X clipboard",
		"find-url",
		$browser_object= 
		function(I) {
		    return "g "+ read_from_x_primary_selection();
		}

);
define_key(content_buffer_normal_keymap, "l", "search-clipboard-contents");




-- Daniel



More information about the Conkeror mailing list