Context menu - open in new instance

  • Nobody/Anonymous

    I know there have been a lot of discussions already about having a multiple windows option in npp, I don't want to revisit that.

    What I need some help with is how to create a context menu for files to be opened in a separate instance of npp (which basically is like open in a new window).

    I tried to straight up regedit but it did not work or my programming skills arent up to the task of making it work.

    [HKEY_CLASSES_ROOT\*\shell\Open with Notepad\command]
    @="C:\Program Files\Notepad++\notepad++.exe %1"

    Another (better) option would probably to be editing the Context Menu dll file. Please help and thanks in advance

    • Philip

      Philip - 2008-06-24

      Hi everyone,

      I would like to do the same thing, add an entry to the context menu such as "Edit in a new Notepad++".
      The thing is, I can't find the path you are refering to in the registry.

      In "HKEY_CLASSES_ROOT\*" I have "OpenWithList" and "shellex" and the only thing related to Np++ is in "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Notepad++" where there is what seems to be an ID.

      There are so many shell entries in the registry, I don't want to try and guess to avoid messing it up.
      Can anyone help please?


    • Nobody/Anonymous

      This should work:

      [HKEY_CLASSES_ROOT\*\shell\Open with Notepad\command]
      @="C:\Program Files\Notepad++\notepad++.exe" -multiInst "%1"

      keep the %1 in its own quotes, filenames with spaces work better that way, I think.

      • Nobody/Anonymous

        Or name it alternatively, like Open with new Notepad++, in order not to overwrite the current entry.