Menu

New environment variable

2007-04-05
2012-11-13
  • Nobody/Anonymous

    Hello,

    will it be possible to extend the environment variable to select the full path name of the first two open tabs?

    I want to run winmerge by something like this: winmwerge $(Full_Current_Path:Tab1) $(.....:Tab2) when two files are currently open. This will make life easier as long as there is no diff plugin or built-in.

    Thanks Uwe

     
    • DV

      DV - 2007-04-06

      You can use NppExec for this task.
      You can find this plugin here: sourceforge.net >> projects >> Notepad++ Plugins.
      How to install: place NppExec.dll to your notepad++'s plugins folder, restart notepad++.
      Call NppExec's dialog (pressing F6 by default) and type this command:

      npp_run "C:\Program Files\WinMerge\winmerge.exe" "$(#1)" "$(#2)"

      then save it as, for example, "WinMerge" (your script name).
      I suppose your winmerge.exe is located in "C:\Program Files\WinMerge".
      You can specify this command without npp_run. In such case (without npp_run) NppExec will wait until winmerge.exe returns.