Community
    • Login

    Compare plugin shell integration

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    compareshellintegrationplugin
    2 Posts 2 Posters 2.4k 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.
    • Adam BartlettA
      Adam Bartlett
      last edited by

      Hi, I like the compare plugin functionality in Notepad++ but I’m using it by opening two files and then choosing Plugins --> Compare -> Compare.

      Is there any way to add shell integration to the compare plugin so that I can select two files in Windows Explorer and choose “Send to” to directly launch the Compare plugin within Notepad++ ?

      I’m using Win 10, Notepad++ v6.5.1 and Compare version 1.5.6.2. I cannot upgrade beyond these versions as updates are controlled by my employer,

      Thanks for your help.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Adam Bartlett
        last edited by

        @Adam-Bartlett

        Could be made working with some tweaks.
        My idea would involve nppexec plugin and two versions
        of NppExec.ini file because NppExec can be configured to run Compare
        on notepad++ startup.

        Basically, one NppExec.ini is configured with something like

        ScriptNppStart="RunCompare"
        

        and the other with default settings.
        You create a batch file which gets executed when clicking the explorer context menu entry.
        The batch file itself renames the default NppExec.ini to something like NppExec.ini.default
        and the special one from, let’s say NppExec.ini_compare to NppExec.ini .
        Then it starts npp exec with the parameter to open the two files and afterwards
        renames the NppExec.inis back to default. Should work, I guess.

        Don’t have windows - so can’t really test.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors