• Login
Community
  • Login

"Folder as Workspace" refresh view

Scheduled Pinned Locked Moved General Discussion
4 Posts 4 Posters 549 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.
  • D
    David Morrison
    last edited by Aug 29, 2023, 2:14 PM

    It would be useful to be able to refresh the “Folder as Workspace” view to pick up files moved into a directory outside of notepad++. I have my web page files on a Raspberry Pi file server. When I move a file from one directory to a different one, I have to close notepad++ and reopen to see that moved file in the new directory. If the option exists, I am unable to find it.

    Thanks,
    David

    M P M 3 Replies Last reply Aug 29, 2023, 2:28 PM Reply Quote 0
    • M
      Mark Olson @David Morrison
      last edited by Aug 29, 2023, 2:28 PM

      @David-Morrison
      On Notepad++ 8.5.6 on Windows 10, the Folder As Workspace reacts in real time to additions/removals of documents from the folder. What version of NPP are you using?

      1 Reply Last reply Reply Quote 0
      • P
        PeterJones @David Morrison
        last edited by Aug 29, 2023, 2:53 PM

        @David-Morrison said in “Folder as Workspace” refresh view:

        I have my web page files on a Raspberry Pi file server. When I move a file from one directory to a different one, I have to close notepad++ and reopen to see that moved file in the new directory. If the option exists, I am unable to find it.

        You’re presumably not running Notepad++ on the RPi (I doubt that you would be running Wine or equivalent on a RPi, anyway).

        So I am assuming you are access the files from your Windows PC using either \\machine\path\ UNC nomenclature or z:\path\ mounted “drive”, or the NppFTP plugin.

        The first two methods should pick up changes immediately… but maybe if the RPi time is significantly different than the PC time, Notepad++'s last-modified checks or what have you are not able to work.

        If you are using NppFTP, you cannot be using Folder as Workspace (“FaW”) directly. The NppFTP window should update its view periodically. But if you have run “FaW” on the local cache directory where NppFTP holds its local copies of the various files from a given server, that does not get updated live. The only time the files in the cache get updated is when you download from the server to the local cache from the NppFTP interface.

        1 Reply Last reply Reply Quote 2
        • M
          mkupper @David Morrison
          last edited by Aug 29, 2023, 4:22 PM

          @David-Morrison The Windows API includes a function, ReadDirectoryChangesW() that Notepad++ uses to watch for changes to files and folders.

          ReadDirectoryChangesW() is not reliable for network shares. If you Google for ReadDirectoryChangesW network drive you will find others seeing the same issue you are having. My guess is that the Raspberry Pi supports an older version of SMB protocol.

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