Community
    • Login

    Open source file from a log file ...

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sven Van de VeldeS
      Sven Van de Velde
      last edited by

      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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Sven Van de Velde
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors