Open source file from a log file ...
-
Hi, if i have a log file with the following format:
08189.773 C:\SOURCE.LUA:INFO SCRIPTING: 209/T: DATABASE00001.EventFunction({[1]={[“id”]=8,[“time”]=23549652.106,[“initiator”]={[“id_”]=18369793,},},})
08189.773 C:\SOURCE.LUA:INFO SCRIPTING: 244/T: DATABASE00001.EventFunction({[1]=“RU Attack Gori Middle#018-02”,[2]=“RU Attack Gori Middle#018”,[4]=1,[5]=2,[6]=“BMP-2”,})Now, would notepad++ have the functionality to show the log file, and allow to open automatically C:\SOURCE.LUA when i select the relevant line of the log and run an “open source file” command, so that the source file gets opened in notepad++ and automatically jumps to the line number in the log file?
If not, would i be able to make a script in notepad++ that does that or is there a plug-in available that i can install and configure to facilitate this functional requirement.
Sven
-
Hello @Sven-Van-de-Velde,
you could install python script plugin (or lua script plugin but not 100% sure if
it is supporting open file in its current release, it’s pretty new) to get this done.Just out of my mind you would need editor.getSelText, editor.gotoLine and npp.open() to solve this.
Because you wrote
If not, would i be able to make a script in notepad++ that does that or is there a plug-in available that i can install and configure to facilitate this functional requirement.
I don’t post the script as I do not want to spoil the party to develop such script ;-)
Cheers
Claudia
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login