#1401 Drag and drop operation interrupted

1.x
closed
Don HO
None
5
2014-08-17
2008-05-12
Nathan
No

Whenever I perform a drag and drop operation, or drag a file from explorer
onto Notepad++, sometimes the operation does not complete because the file
status message box pops up and stops the drag and drop operation. It
says..

"The file xyz.log is modified by another program. Reload this file?"

What should be done to fix it is that Notepad++ shouldn't attempt to reload
files until it has already completed the current drag and drop operation if
one does exist.

I know you could simply say, well turn the option off that asks you if you
want to reload. Then I'll just say, but what if I want to be asked?

Discussion

1 2 > >> (Page 1 of 2)
  • Don HO
    Don HO
    2008-05-17

    • assigned_to: nobody --> donho
     
  • Don HO
    Don HO
    2008-05-17

    Logged In: YES
    user_id=916327
    Originator: NO

    OK nethenm, I'll see what can I do for this, but I promise nothing.

    Don

     
  • Don HO
    Don HO
    2008-05-17

    Logged In: YES
    user_id=916327
    Originator: NO

    > Whenever I perform a drag and drop operation, or drag a file from explorer
    > onto Notepad++, sometimes the operation does not complete because the file
    > status message box pops up and stops the drag and drop operation. It says..
    >
    > "The file xyz.log is modified by another program. Reload this file?"

    I can not reproduce it under vista with Notepad++ v4.9.2
    Could you provide me a procedure to reproduce it?

    Don

     
  • Logged In: NO

    I agree, it's a pain.

    It should take in the drag drop operation then prompt you, then you don't have to run back and find the original file you are drag dropping (repeating).

    Admittedly, you could try remembering everytime to update before dragging but this is inconvenient and in reality you just want to get things done.

    Anotehr bug bear regarding this is that lately (for the last month) it refuses drag drop files.. before it always used to take files easily and display them, lately when I drag drop it often ignores the operation... this is to do with one of the last 3 updates of Notepad++. It was fine previously.

     
  • Nathan
    Nathan
    2008-05-20

    Logged In: YES
    user_id=1974078
    Originator: YES

    It is possible in rare instances when dragging and dropping. I've tested it and the best way I can duplicate it is if there is something that is changing a file very often. Then when you have focus on the NotePad++ window and it is active and you have a windows explorer folder open in the background. If you take your mouse and click on the file you want to drag and hold it there for a second, you'll see that the NotePad++ window loses focus. Then when you try and drag it to the NotePad++ window (the gray border area), you'll notice that if a file has changed in the mean time that the file status dialog will popup and interrupt the drag and drop operation.

    In otherwords, this is how it happens..

    During a drag and drop operation, like in the middle of it, if it so happens that the NotePad++ window gets activated, that the file status dialog will appear and not allow you to drop files.

    It is best to try this with long drag and drop operations, say 2 seconds, and then with a file that changes very often.

     
  • Nathan
    Nathan
    2008-05-20

    Logged In: YES
    user_id=1974078
    Originator: YES

    What would be super cool is if NotePad++ had an information bar like Internet Explorer, so that if a file changed it would ask you in the information bar instead of popping up a message box. But I'm just dreaming.

     
  • Nathan
    Nathan
    2008-05-20

    Logged In: YES
    user_id=1974078
    Originator: YES

    NotePad++ should only ask you if you want to reload a file when it has changed, if the file is visible in the editor. If the file is not visible in the editor then it shouldn't ask you to reload it. When the file does become active/visible in the editor (by the changing of the tabs or window splitting), then it should ask you if you want to reload it.

    NotePad++ should NOT ask you to reload every single file when the window becomes active, but only the files that have focus or visibility in one way or another in the editor.

     
    • Al Le
      Al Le
      2013-02-17

      I fully agree with you. Only the active file should be reloaded (optionally with a prompt). If another file becomes active and that file also has been modified -- only then should NP++ ask whether to reload the file.

      This is perfectly done in e.g. TextPad. The way it is now implemented in NP++ is very annoying.

      So there are two issues in this issue:

      1. When dropping a file to NP++, the drag operation should not be interrupted by the prompt "Reload file" if the active file has been modified. Instead, the drag operation should be completed, and only then the prompt displayed (if configured so).

      2. The prompt "Reload file?" should only be displayed when the file becomes active.

       
  • Logged In: NO

    When it happens again I'll try and see what's up. It seems to work normally on first attempts.

     
  • Don HO
    Don HO
    2014-08-17

    • status: open --> closed
    • Group: --> 1.x
     
1 2 > >> (Page 1 of 2)