• Login
Community
  • Login

Open relative links with right-click

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 5.2k 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.
  • J
    Jonas Stene Pettersen
    last edited by Jul 3, 2015, 8:50 AM

    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
    • J
      jonandr
      last edited by Jul 3, 2015, 2:09 PM

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