On 12/7/2013 11:36 AM, Fidel N wrote:
webbrowser.open('http://www.google.com/#'+urlencode({'q': StringToSearch}))
@settings ->
  @command search-in-google

----
@language python

import webbrowser
import urllib

selection = c.frame.body.getSelectedText()
g.es(selection)
webbrowser.open('http://www.google.com/#'+urllib.urlencode({'q': selection}))
----

Adding this to contextmenu.py's settings puts it on the tree pane though. It looks like contextmenu.py definitely needs a body-pane bit.

-->Jake

--
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to