Menu ▾ ▴

NppDocShare, collaborative editing

Harry
2008-10-18
2012-11-14
  • Harry

    Harry - 2008-10-18

    I just released a small test release of NppDocShare, a small collaborative edit plugin.
    You can find it here:
    http://harrysnppstuff.webs.com/nppdocshare.htm
    along with a little explanation, but no readme or anything, I just like to see what people think of it.
    The interface needs polishing, that much is clear :).

     
    • Gregory

      Gregory - 2008-11-08

      Can't you just do something like UPnP port mapping while someone is hosting a server?

       
    • Martijn Coppoolse

      ...wow!  Now *that's* collaborative editing — real-time changes in the very same document!

      A few small points: it would probably be nice if the 'client' used the correct language and format settings. I had a Javascript document open, in 'ANSI as UTF-8' mode; but the client opened up a new document with no highlighting and in ANSI -- resulting in gibberish wherever I had extended characters in the original.
      But that shouldn't be too difficult to implement, I guess.    :-)

      Also, when I type a tab character in the chat box, a tab is inserted in the document.  It looks kinda silly.

      More importantly, Ctrl-Z seems to undo the other person's work, as well as the user's own work.  I don't know if that's handy -- when I press Ctrl-Z, I want to undo what I just did, not whatever the other person did.

      It's probably me, but I just can't really think of a situation where real-time editing like this has benefits over a system like Subversion.  Of course, this should work out-of-the-box, without having to set up a SVN serrver, but still...
      All in all, I think I'll prefer using SVN, personally.  Now only if that picked up changes on save...

      But this sure does look cool!  :-)

      How does it work, BTW?  Just send the Scintilla messages to the other side, or do you actually pass text changes?

       
    • Harry

      Harry - 2008-10-18

      It passes the text changes, but it uses Scintilla to capture events.
      If it were to send the actual scintilla it would ahve to wait for the client t respond, which is laggy.

      As for the undo, scintilla either has undo for everything or nothing, I dont think I can filter out events. Scintilla wasnt build for this kind of stuff. Not sure how to fix the tab character, it probably needs subclassing .

      There are uses for real time collaborative editing, though sometimes SVN is more practical. You can use it to discuss code for example.

       
    • simon sam

      simon sam - 2008-10-20

      Wow It's amazing
      I like it Thank you

      _____________________________________
      [url=http://gmail.com] Gmail Rocks [/url] [url=http://mail.yahoo.com] Yahoo Mail Rocks [/url]

       
    • John Bowman

      John Bowman - 2008-10-20

      this plugin is a great idea...  keep up the good work!!!

       
    • Gregory

      Gregory - 2008-10-27

      A tut would be nice, I can't get connected with anybody...

       
    • Gregory

      Gregory - 2008-10-27

      Yeah...on the version included with 5.1 I can't get it to work...help :(.

       
    • Harry

      Harry - 2008-10-28

      Sorry, the readme is probably not included as I forgot to add it. I tried to keep it as simple as possible but the UI isnt very friendly.
      One person just clicks on serve and that it, he will share.
      The other fills in the address of the computer of that person (IP or hostname, localhost if you are testing locally) and clicks on connect and thats it.
      Make sure the port number is the same on both computers, the default should do fine.

       
    • Mark Baines

      Mark Baines - 2008-10-28

      Harry, if I dock the NppDocShare window to the left with my other docked plugins, I can't see the bottom of the dialog unless I make the main N++ window longer. There ought to be a vertical scrollbar maybe?

      Also (minor point), the toolbar icon has the tooltip "Show Dialog" instead of perhaps "Show NppDocShare Dialog" or simple "NppSocShare...".

      Bloody clever plug-in BTW - well done!!

      Mark B

       
    • Mark Baines

      Mark Baines - 2008-10-28

      Harry
      Nothing is currently stored in nppdocshare.ini although the file is saved to /plugins/config. Would be nice to store used addresses and ports - maybe dropdown list to select from?

      all the best

      Mark B

       
    • Gregory

      Gregory - 2008-11-01

      I still can't get it to work.

      I hosted on localhost with default port and my friend put in my IP, nothing.

      Help?

       
    • Harry

      Harry - 2008-11-01

      Are you using a NAT (Router)? If so, forward the port, see the manual for more info, each router is different. Firewalls block it too.

       
    • Gregory

      Gregory - 2008-11-03

      No, but I'll try forwarding the port.

      Just wondering, but does the plugin have a range of ports you have to use, or can you use any port?

       
      • Harry

        Harry - 2008-11-03

        You can use any free port you like, even 80 if you aren't running a webserver, as long as its the same on both ends. I just picked 20081 since its the year 2008 and the first release/test/guess.
        If you do not have a router with NAT, there's not much point in portforwarding since you actually need a router to do that :).
        I agree the UI isn't the most intuitive but without packages such as zeroconf (or something like that, I think its for apple), I can't reduce it to much less.
        If NppDocShare keeps failing to connect, try pinging to the server. If that fails aswell you either have some firewall running, some incorrect NAT settings (portforwarding) or just have the wrong address. To ping, open cmd.exe and type "ping ADDRESS" without the quotes, it'll say if it succeeds or times out (there could ofcourse be some other problem I dont know about, networking can be hard to debug)

         
    • Gregory

      Gregory - 2008-11-07

      Oh oops I do have it with NAT, I had to get my friend to port forward though, I port forwarded to to be safe.

      Works now.

      The ONLY thing I would like to change is an option to disable the who wrote what highlighting, it can get annoying when you're trying to script with somebody.

       
      • Harry

        Harry - 2008-11-07

        I planned to make the coloring configurable if I was going to make a next version (which I might, depends on the general interest), so I'll keep that in mind.
        Generally speaking, the server is the only one to have to forward the port, but like you said, you can do it on both sides to be safe (though in terms of internet security it might be debatable if its safe =])

         
  • PlexPro

    PlexPro - 2011-10-03

    I am setting up a new Windows 7 computer and installed Notepad++.  After installing the plugins that I have installed on my XP computer, I noticed that a plugin that shows up as NppNetNote in the "Installed" tab of my XP installation's Plugin Manager, and on the "Available" tab of my W7 installation, remained in the "Available" tab of my W7 installation, while NppDocShare showed up in the "Installed" tab.

    If I click on NppNetNote on either machine, it displays some text and points to http://downloads.sourceforge.net/sourceforge/npp-plugins/NppDocShare_0_1_src.zip, but on the W7 "Installed" tab it says "Unknown plugin - please let us know about this plugin on the forums", and has no file reference.  Further, it does not display anything for "category" or "stability".

    So I am letting "you" know about this on the forums…  :)

     
  • Dave Brotherstone

    Many thanks for reporting it - we'll sort it out when the next plugin update goes out.

    Thanks again,
    Dave.

     
  • rvabrilot

    rvabrilot - 2011-12-28

    great work!   currently for me is the most promising plugin of the notepad++

    it would be awesome if more than two computers could connect at the same time, because this is the main reason to use svn or git and …. well you have a real good chance here!