jstoecker / sublime-sourcedepot

0 stars 0 forks source link

Does this work? If so how do I add this? #1

Open vidia opened 9 years ago

jstoecker commented 9 years ago

It's crude, but it works. This isn't a really robust plugin; it just allows you to do some common tasks without opening razzle.

You'll need to edit the two lines starting with sd_path and sdv_path to point to your own enlistment or path where sd.exe and sdv.exe are located.

To use this, just drop the two files (SourceDepot.py and SourceDepot.sublime-commands) into your Packages\User directory. For me, this is "C:\Users\justoeck\AppData\Roaming\Sublime Text 3\Packages\User." You can access this quickly from within Sublime Text with the menu Preferences > Browse Packages..., but make sure to place the files inside the User folder.

Inside ST, use Control-Shift-P to open the command palette. Type "Source Depot" and you'll see various commands. These commands apply to the file opened in the focused view, so if you use the "Source Depot: Edit" command it will only work if the file is under one of your enlistments.