mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-10 14:22:46 -06:00
22 lines
502 B
C++
22 lines
502 B
C++
#include "ide.h"
|
|
|
|
void Ide::OnlineSearch()
|
|
{
|
|
String selection = editor.GetSelection();
|
|
if (selection.IsEmpty()) {
|
|
return;
|
|
}
|
|
|
|
LaunchWebBrowser("https://www.google.com/search?q=" + UrlEncode(selection));
|
|
}
|
|
|
|
void Ide::OnlineSearchOnTheOfficialSite()
|
|
{
|
|
String selection = editor.GetSelection();
|
|
if (selection.IsEmpty()) {
|
|
return;
|
|
}
|
|
|
|
LaunchWebBrowser("https://www.google.com/search?q=" + UrlEncode(selection) +
|
|
"&domains=www.ultimatepp.org&sitesearch=www.ultimatepp.org");
|
|
}
|