is there an option to open the IDE wit searching for specific text?
I know the option /L which jumps to a line.
Anyway, maybe someone has a better idea.
At the moment I use an au3-script and cintanotes to find a procedure or structure.
Cintanotes is a tool with tagging capabilities.
So, I can lookup for procedures or parameter usage, modules, etc.
And yes: a good project management is better than hacking code; but as usual -> when things need to be done fast very often it gets a little mess;-)
In cintanotes I have a link like
Code: Select all
D:\Programs\AutoIt\AutoIt3_x64.exe D:\Data\CintaNotes\link2PB.au3 "D:\LIB\PureBasic\PBL\GUI\PBL.GUI.i.pb" "Procedure pageLengthScrollbarGadget"
Code: Select all
$Q = Chr(34)
$S = Chr(32)
local $i, $Msg="", _
$FileToOpen, $TextToSearch, _
$PBExe = "C:\Progra~2\PureBasic\PureBasic.exe " ; ADJUST
if $CmdLine[0]=0 then
$FileToOpen = "D:\LIB\PureBasic\PBL\GUI\PBL.GUI.i.pb" ; DEFAULT (for testing)
$TextToSearch = "Procedure pageLengthScrollbarGadget" ; ""
else
$FileToOpen = $CmdLine[1]
$TextToSearch = $CmdLine[2]
endif
if StringLeft($TextToSearch, 1)=$Q then
$TextToSearch = StringMid($TextToSearch, 2)
EndIf
if StringRight($TextToSearch, 1)=$Q then
$TextToSearch = StringTrimRight($TextToSearch, 1)
EndIf
ShellExecute($PBExe, $Q & $FileToOpen & $Q & $S & "/L 1")
WinActivate("PureBasic 5.31 (x86)") ; don't like this but didn't find another way
sleep(500) ; wait for file loaded
send("^f")
sleep(500) ; wait for find/replace window coming up
send($TextToSearch)
send("{ENTER}")