adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Feature request: invoking Google search via Quick Open #7194

Closed larz0 closed 10 years ago

larz0 commented 10 years ago

Something like this:

brackets_googlesearch_001

It should show the search results in Chrome (same browser as live preview).

peterflynn commented 10 years ago

@larz0 It should be easy to do in an extension if you're willing to have a prefix on the search string (like other Quick Open plugins). Do you actually think this should be default behavior in core? Also, what about other online searches -- GitHub code search, stackoverflow, MDN, etc. might actually feel more relevant to developers. I don't know how much of an assumption we'd want to bake in there...

larz0 commented 10 years ago

Ahh that led me to this https://github.com/peterflynn/brackets-editor-nav. Maybe we could just extend your extension and see what happens :)

peterflynn commented 10 years ago

@larz0 That extension doesn't do any online searches or anything, so it's probably not a good fit there... but it's certainly a good example of how an extension can easily plug into the Quick Open functionality.

TomMalbran commented 10 years ago

Another option would be to just use a bottom panel that loads any of those pages inside Brackets.

larz0 commented 10 years ago

I'm able to load Bing in Brackets but not Google because of Google's same origin policy.

http://github.com/larz0/bottom-browser

peterflynn commented 10 years ago

I don't think it's same-origin, it's probably a no-frame header. There are security concerns about browsing to arbitrary untrusted web content inside brackets-shell though, so I'd be hesitant about doing this in core. (It also has downsides like no bookmarking, no back/fwd buttons or URL bar for free, no shared cookies with your main browser session, etc.)

dangoor commented 10 years ago

Closing as extension idea