Community
    • Login

    Open relative links with right-click

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 5.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.
    • Jonas Stene PettersenJ
      Jonas Stene Pettersen
      last edited by

      I use Notepad++ to run input-files for an external program. In these input files I have a lot of referenced files, and it would be great to find a way to open these referenced files directly by clicking them. Is there any way to change Notepad++'s “Clickable Links” functionality so that it is able to recognize the file path in this line?:

      incdf Y:\Global_input_files\Material_properties\CMPNS.inp

      PS. I have tried some plugins without luck (QuickOpenPlugin and SourceCookifier)

      Any help is much appreciated!

      1 Reply Last reply Reply Quote 0
      • jonandrJ
        jonandr
        last edited by

        It is very difficult to detect paths in free text since paths can contain spaces. Such a feature would have a lot of false positives which would annoy users.

        In this particular case where the format is known you could write a Python script which parses the line and opens the file. Then you could tie the script to a shortcut key.

        http://npppythonscript.sourceforge.net/docs/latest/

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