We use Dreamweaver on our WIndows workstations for PHP/Javascript development. We’re evaluating Sublime as a replacement, first on the Macs, and secondly possibly on the Windows machines too. However, one thing that we like is the check-in/check-out feature of Dreamweaver. It’s very simple; Dreamweaver simply places a .LCK file with the same filename on the server when you open a file and then removes it when you “check in.” The .LCK file contains the name of the person who is working on the file.
By the way: this isn’t our version control system (we already use Git and some other things for version control) but it’s a very simple way to avoid overwriting changes on small websites. Creating a branch and merging it back in is too cumbersome for a small website. The check-in/check-out system has worked fantastically for years for those small projects.
So I’d like to create a plugin for Sublime 2 that allows me to place the .LCK file on the server (via FTP) and remove it. I have some basic knowledge of Python and can learn it fairly quickly (I know many other programming languages quite fluently). I’d like some direction as to which hooks I will need to tap into and some ideas as to the best way to go about this.
If it works well for us, we’ll release it so others can use it as well. But I look forward to your thoughts.
Thanks in advance!
- Jamon