Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use voke.fm for PHP and CSS searches

Continue to use Google for other searches
  • Loading branch information...
commit bf40cb20097d392bf77354d784537a1279c78efe 1 parent 12f8315
@mattpass authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/ice-coder.js
View
10 lib/ice-coder.js
@@ -1949,10 +1949,14 @@ var ICEcoder = {
// CTRL+I (Get info)
} else if(key==73 && top.ICEcoder.ctrlKeyDown==true && area == "content") {
var searchPrefix = "";
- if (top.ICEcoder.caretLocType!="Content") {
- searchPrefix = top.ICEcoder.caretLocType.toLowerCase()+" ";
+ if (top.ICEcoder.caretLocType=="CSS"||top.ICEcoder.caretLocType=="PHP") {
+ window.open("http://voke.fm/"+top.ICEcoder.getcMInstance().getSelection());
+ } else {
+ if (top.ICEcoder.caretLocType!="Content") {
+ searchPrefix = top.ICEcoder.caretLocType.toLowerCase()+" ";
+ }
+ window.open("http://www.google.com/#output=search&q="+searchPrefix+top.ICEcoder.getcMInstance().getSelection());
}
- window.open("http://www.google.com/#output=search&q="+searchPrefix+top.ICEcoder.getcMInstance().getSelection());
top.ICEcoder.ctrlKeyDown = false;
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.