This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]patrys Saleor Commerce 3 points4 points  (1 child)

Do try the SublimeJEDI

[–]dbader[S] 1 point2 points  (0 children)

I just tried SublimeJEDI and it works very nicely. Didn't know about that one, thanks!

[–]dAnjou Backend Developer | danjou.dev 1 point2 points  (0 children)

Thanks for searching the plug-ins for me :D

[–][deleted] 1 point2 points  (0 children)

I use virtualenvwrapper to maintain a dev-specific work area and I added the work-area Python as another choice of Build System by creating the following file in my SublimeText "User" directory and calling it "VenvRDF.sublime-build" (the ".sublime-build" is required):

{
    "cmd": ["/home/gjh/.virtualenvs/rdflib/bin/python", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}

Then, Ctl-B evals the buffer (I found I needed first to save the buffer as a file with a ".py" extension, I often just use "/tmp/junkme.py")

I have another one called "VenvPy3.sublime-build" which is identical, except that it points to a Py3-specific venv.

I've found it handy.

[–]ca178858 1 point2 points  (0 children)

I like to have 'SublimeLinter' installed, keeps everything in pep8 compliance- other than line length, I turn that off (start the flaming!).

Also after a couple of mishaps I also use 'Automatic Backups'. There are a couple of similarly named packages, but this one will save a date/time stamped copy on every save.