Community
    • Login

    Open relative links with right-click

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 5.6k Views 1 Watching
    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 Offline
      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 Offline
        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

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors