News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Google releases code search service

Started by Pecan, October 06, 2006, 05:06:52 PM

Previous topic - Next topic

Pecan


sethjackson

Yep saw this yesterday. :)

I wonder if the Koders plugin can be easily extended to do a Google code search? Hmmm.....

Pecan

Quote from: sethjackson on October 06, 2006, 05:36:25 PM
Yep saw this yesterday. :)

I wonder if the Koders plugin can be easily extended to do a Google code search? Hmmm.....

Well...

"You're da man !" Give us a patch.  :)

sethjackson

Quote from: Pecan on October 06, 2006, 07:22:36 PM
Quote from: sethjackson on October 06, 2006, 05:36:25 PM
Yep saw this yesterday. :)

I wonder if the Koders plugin can be easily extended to do a Google code search? Hmmm.....

Well...

"You're da man !" Give us a patch.  :)

Mandrav is the man. :D

I'll take a look at the plugin later. ;)

artoj

Quote from: sethjackson on October 06, 2006, 08:17:00 PM
I'll take a look at the plugin later. ;)

You might want to look one of my earlier plugins called Internet Search. It was the first plugin I made for C::B back in 2005. It's old but most of the code can be used.

Morten also ported the plugin to the SVN version but he couldn't send me the patches, so you should consult him too.

    Arto

MortenMacFly

Quote from: artoj on October 06, 2006, 09:37:18 PM
Morten also ported the plugin to the SVN version but he couldn't send me the patches, so you should consult him too.
Oops - didn't I? I can't recall... sorry for that. If there is still any interest I could re-activate them and post here... how about?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

thomas

Similar functionality has been part of the core since last November. Supposed you can live with the results showing up in the browser (which shouldn't be a problem), adding Google Code is a matter of 3 more lines of code :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

artoj

Quote from: thomas on October 06, 2006, 11:19:02 PM
Similar functionality has been part of the core since last November. Supposed you can live with the results showing up in the browser (which shouldn't be a problem), adding Google Code is a matter of 3 more lines of code :)

Indeed, I wasn't aware of that functionality when I developed my plugin, around that same time.

My plugin also shows the results in browser too though it has 2 things I like over the current C::B implementation:

1) I can add any number of new search engines I like (without editing the source)
2) The default search engine can be launched with a keyboard shortcut so I don't have to use mouse

Quote from: MortenMacFly on October 06, 2006, 11:17:36 PM
Oops - didn't I? I can't recall... sorry for that. If there is still any interest I could re-activate them and post here... how about?!
With regards, Morten.

No you didn't but you don't have to to worry about that :). I don't have any plans to resurrect the plugin currently however if someone wants to develop something around it, go ahead, it's GPL after all.

    Arto

artoj

Quote from: thomas on October 06, 2006, 11:19:02 PM
Similar functionality has been part of the core since last November. Supposed you can live with the results showing up in the browser (which shouldn't be a problem), adding Google Code is a matter of 3 more lines of code :)

By the way, I would suggest making a new tip about this feature.

Something like:

"You can perform a quick search to Google, Google Code or MSDN by holding Ctrl and right-clicking the text you want to search."

killerbot

Quote from: artoj on October 07, 2006, 10:38:57 AM
Quote from: thomas on October 06, 2006, 11:19:02 PM
Similar functionality has been part of the core since last November. Supposed you can live with the results showing up in the browser (which shouldn't be a problem), adding Google Code is a matter of 3 more lines of code :)

By the way, I would suggest making a new tip about this feature.

Something like:

"You can perform a quick search to Google, Google Code or MSDN by holding Ctrl and right-clicking the text you want to search."

done

thomas

Quote from: artoj on October 07, 2006, 09:55:50 AMMy plugin also shows the results in browser too though it has 2 things I like over the current C::B implementation:

1) I can add any number of new search engines I like (without editing the source)
2) The default search engine can be launched with a keyboard shortcut so I don't have to use mouse

1) Yes, I thought about that for a second when implementing this initially, but then it seemed too much work and hassle for something you don't really need (and don't want!). I did not even intend to support MSDN search at first, as the plan was a simple, unobstructed one-click internet search (no multiple choices). But then the menu looked so naked with only one entry... hence came MSDN... and now Google Code :)
Configuration is generally nice, but you know my point of view in the field of customisation. It is good as long as it is useful and necessary, but beyond that, configuration only adds complexity.
In this particular case, I daresay "If Google hasn't got it listed, then it doesn't exist". :)

2) Oh yeah, good point... my keyboard even has a dedicated key for that (and I never remember to use it!) :lol:
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."