• Login
Community
  • Login

Two instances, dnd works to first, not to second?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
11 Posts 3 Posters 757 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.
  • A
    Alan Kilborn
    last edited by Alan Kilborn Feb 14, 2020, 1:04 PM Feb 14, 2020, 1:02 PM

    I encountered an interesting situation. I have my main N++ that I use day-to-day open and I can drag-and-drop files from Explorer to open them in N++, no problem, no worries…

    But I found that if I open a second instance, using portable 7.8.4 with the -multiInst parameter, I can’t do drag-and-drop file opening from (the still-running copy of) Explorer.

    Trying the same file in each instance; main instance works, second I get the little box with the plus sign, but releasing the left mouse button results in the file NOT opening.

    Neither Notepad++ instance is administrator mode (no string in the title bars) and the Explorer is not admin-capable either.

    Also: The file opens just fine in the second N++ instance if I use File > Open… and then browse to the file’s location.

    Any ideas?

    1 Reply Last reply Reply Quote 0
    • E
      Ekopalypse
      last edited by Feb 14, 2020, 1:09 PM

      I assume I work, more or less, all the time with this configuration.
      First npp instance is started with mono-instance setting.
      Then I press F9 to run open another instance, which according to
      task manager has been started with -nosession -multiInst flags.
      I can drag and drop files from explorer to any instance running.

      A 1 Reply Last reply Feb 14, 2020, 2:01 PM Reply Quote 2
      • A
        Alan Kilborn @Ekopalypse
        last edited by Feb 14, 2020, 2:01 PM

        @Ekopalypse

        Hmm. I didn’t start my second instance that way, because I wanted a different version of Notepad++ to be running for that 2nd instance. Would you may be so kind as to try my exact scenario?

        • main N++ running, drop fileX from Explorer into it, all is OK
        • cmd prompt in folder of different version of N++, e.g. 7.8.4 portable, type notepad++.exe -multiInst
        • test drag and drop of same fileX from same Explorer into it
        E 1 Reply Last reply Feb 14, 2020, 2:20 PM Reply Quote 1
        • P
          PeterJones
          last edited by Feb 14, 2020, 2:12 PM

          @Alan-Kilborn ,

          For me:

          Situation 1:

          • Open my default () 7.8.4-64 normally (: even my default is a portable)
          • Drag file.txt from explorer to 7.8.4-64, opens fine
          • launch portable\npp.7.8.4-32\notepad++.exe -multiInst
            • same version, different bits
          • Drag file.txt from same explorer to 7.8.4-32, opens fine
          • close file.txt in 7.8.4-64; re-drag to 7.8.4-64, still opens fine
          • (close all Notepad++ instances)

          Situation 2

          • Open my default () 7.8.4-64 normally (: even my default is a portable)
          • Drag file.txt from explorer to 7.8.4-64, opens fine
          • launch portable\npp.7.8.2-64\notepad++.exe -multiInst
            • different version, same bits
          • Drag file.txt from same explorer to 7.8.2-64, opens fine
          • close file.txt in 7.8.4-64; re-drag to 7.8.4-64, still opens fine
          • (close all Notepad++ instances)

          I thought I remembered you had all instances as portable, like I do… but I could be wrong. If your main instance is an installed version and the second was portable, that might change things, and I cannot replicate that situation from here.

          A 1 Reply Last reply Feb 14, 2020, 2:16 PM Reply Quote 3
          • A
            Alan Kilborn @PeterJones
            last edited by Feb 14, 2020, 2:16 PM

            @PeterJones

            Thanks for trying. All my instances are portable.

            I guess I can live with it not working for me, as I can always browse to right place to open the file (for this infrequent need).

            I just found it curious, and I like to report and discuss the curious. :-)

            I don’t think it is worth reporting as a real “issue” as I may be a “one-off”.

            1 Reply Last reply Reply Quote 3
            • E
              Ekopalypse @Alan Kilborn
              last edited by Feb 14, 2020, 2:20 PM

              @Alan-Kilborn said in Two instances, dnd works to first, not to second?:

              @Ekopalypse

              Hmm. I didn’t start my second instance that way, because I wanted a different version of Notepad++ to be running for that 2nd instance. Would you may be so kind as to try my exact scenario?

              • main N++ running, drop fileX from Explorer into it, all is OK
              • cmd prompt in folder of different version of N++, e.g. 7.8.4 portable, type notepad++.exe -multiInst
              • test drag and drop of same fileX from same Explorer into it

              I just did, even with 7.8.4 - works for me.

              1 Reply Last reply Reply Quote 1
              • A
                Alan Kilborn
                last edited by Feb 14, 2020, 3:15 PM

                OT to this thread, but I noticed when you have multiple instances open, future operations (e.g. file association ops) take place on the most-recently opened instance. Not a problem, but maybe not what I expect/want. Now I’m remembering why I dislike and rarely use multiple instances. :-)

                E 1 Reply Last reply Feb 14, 2020, 3:22 PM Reply Quote 0
                • E
                  Ekopalypse @Alan Kilborn
                  last edited by Feb 14, 2020, 3:22 PM

                  @Alan-Kilborn said in Two instances, dnd works to first, not to second?:

                  future operations (e.g. file association ops) take place on the most-recently opened instance

                  and are not saved, nice for testing but strange if you think you’ve done
                  those changes already but after a new npp start it’s gone.

                  A 1 Reply Last reply Feb 14, 2020, 3:26 PM Reply Quote 0
                  • A
                    Alan Kilborn @Ekopalypse
                    last edited by Feb 14, 2020, 3:26 PM

                    @Ekopalypse said in Two instances, dnd works to first, not to second?:

                    and are not saved

                    You mean like “new #” files in the 2nd instance’s session? I wouldn’t know, as keeping unnamed or unsaved files around longer than a few seconds is about the dumbest idea I can think of.

                    But apparently people love it, and then they love to complain about it when their files are suddenly just gone, and gone for good. :-) but more accurately :-(

                    E 1 Reply Last reply Feb 14, 2020, 3:32 PM Reply Quote 1
                    • E
                      Ekopalypse @Alan Kilborn
                      last edited by Feb 14, 2020, 3:32 PM

                      @Alan-Kilborn

                      No, I meant you start main npp, then you start another npp -multiInst
                      and within the second instance you do, for example, enable multiline tabs.
                      You close both npp instances and restart it, multiline tabs are disabled again. Only changes by the instance which get closed last will be saved.

                      A 1 Reply Last reply Feb 14, 2020, 3:33 PM Reply Quote 3
                      • A
                        Alan Kilborn @Ekopalypse
                        last edited by Alan Kilborn Feb 14, 2020, 3:34 PM Feb 14, 2020, 3:33 PM

                        @Ekopalypse

                        Only changes by the instance which get closed last will be saved.

                        Oh, yea. Knew that. Another reason to dislike M.I. :-)

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