mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
17 lines
458 B
C++
17 lines
458 B
C++
#include "ide.h"
|
|
|
|
static String GetSearchPhrase(AssistEditor& editor)
|
|
{
|
|
return UrlEncode(Nvl(editor.GetSelection(), editor.GetWord()));
|
|
}
|
|
|
|
void Ide::OnlineSearch()
|
|
{
|
|
LaunchWebBrowser("https://www.google.com/search?q=" + GetSearchPhrase(editor));
|
|
}
|
|
|
|
void Ide::OnlineSearchOnTheOfficialSite()
|
|
{
|
|
LaunchWebBrowser("https://www.google.com/search?q=" + GetSearchPhrase(editor) +
|
|
"&domains=www.ultimatepp.org&sitesearch=www.ultimatepp.org");
|
|
}
|