NotepadPlusPlus Run TUFLOW

From TUFLOW FV Wiki
Jump to navigation Jump to search
    To run TUFLOW from Notepad++ we need to create a new Run option.
  1. Select the Run >>> Run menu items.
  2. In the Run dialogue enter the following:
    cmd /c cd /d "$(CURRENT_DIRECTORY)" & "C:\TUFLOWFV\2023.1\TUFLOWFV.exe" "$(FULL_CURRENT_PATH)"
    Ensure to update "C:\TUFLOWFV\2023.1\TUFLOWFV.exe" with your preferred exe path.
    NP++ Run TUFLOWFV.png
  3. This tells notepad to pass the currently open file to TUFLOW FV as the input file.
  4. Select Save and give the item a sensible name e.g. TUFLOW FV 2023.1.
  5. To run TUFLOW FV with the currently open file, simply select the item from the Run menu (or set a shortcut if desired).
    NP++ Run TUFLOWFV Dialouge.png

TIP: The shortcuts can be found and edited in the shortcuts.xml file stored on your machine. The easiest way to find this is to search for it, on my computer it is located here:

C:\Users\username\AppData\Roaming\Notepad++\

This file includes all of the commands for the shortcuts in your "Run" menu. In this case the final entry is the TUFLOW entry.

   <UserDefinedCommands>
       <Command name="Get PHP help" Ctrl="no" Alt="yes" Shift="no" Key="112">https://www.php.net/$(CURRENT_WORD)</Command>
       <Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="114">https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
       <Command name="Open file in another instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command>
       <Command name="TUFLOW FV 2023.1" Ctrl="no" Alt="yes" Shift="no" Key="32">cmd /c cd /d "$(CURRENT_DIRECTORY)" & "C:\TUFLOWFV\2023.1.1\TUFLOWFV.exe" "$(FULL_CURRENT_PATH)"</Command>
   </UserDefinedCommands>

Back to Notepad ++ tips.