mirror of https://gitlab.com/basile.b/dexed.git
added Coedit custom tool example
This commit is contained in:
parent
0c845a4ba6
commit
3d02a0b4c4
|
@ -0,0 +1,22 @@
|
||||||
|
object CurrentProject: TCEProject
|
||||||
|
OptionsCollection = <
|
||||||
|
item
|
||||||
|
name = 'release'
|
||||||
|
outputOptions.inlining = True
|
||||||
|
outputOptions.noBoundsCheck = False
|
||||||
|
outputOptions.boundsCheck = offAlways
|
||||||
|
outputOptions.optimizations = True
|
||||||
|
outputOptions.release = True
|
||||||
|
pathsOptions.outputFilename = '<CAP>googlesearch'
|
||||||
|
preBuildProcess.options = []
|
||||||
|
preBuildProcess.showWindow = swoNone
|
||||||
|
postBuildProcess.options = []
|
||||||
|
postBuildProcess.showWindow = swoNone
|
||||||
|
runOptions.options = []
|
||||||
|
runOptions.showWindow = swoNone
|
||||||
|
end>
|
||||||
|
Sources.Strings = (
|
||||||
|
'..\src\googlesearch.d'
|
||||||
|
)
|
||||||
|
ConfigurationIndex = 0
|
||||||
|
end
|
|
@ -0,0 +1,21 @@
|
||||||
|
module googlesearch;
|
||||||
|
|
||||||
|
/*
|
||||||
|
Coedit custom tool:
|
||||||
|
search some help about the current identifier.
|
||||||
|
executable: <CAP>\googlesearch.exe
|
||||||
|
parameters: <CI>
|
||||||
|
*/
|
||||||
|
|
||||||
|
static const string prefix = "http://www.google.com/search?q=\"dlang.org+";
|
||||||
|
static const string suffix = "&btnI=Im+Feeling+Lucky";
|
||||||
|
|
||||||
|
void main(string args[])
|
||||||
|
{
|
||||||
|
if (args.length == 1)
|
||||||
|
return;
|
||||||
|
|
||||||
|
auto url = prefix ~ args[1]~ suffix;
|
||||||
|
import std.process: browse;
|
||||||
|
browse(url);
|
||||||
|
}
|
Loading…
Reference in New Issue