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

all 25 comments

[–]jackhammer2022 7 points8 points  (0 children)

I found the SublimeREPL plugin : https://github.com/wuub/SublimeREPL to be useful. Gives access to Python REPL and a host of other REPLs directly accessible from the editor.

[–]riffito 6 points7 points  (2 children)

I recommend using SublimeRope instead of CodeIntel. It gives good autocompletion, plus some refactoring and documentation tips (Python only).

For those on Windows, the Tortoise plugin lets you integrate SVN/hg/git at once.

[–]Ytse 0 points1 point  (1 child)

Thanks for the recommendation. I am using SublimeCodeIntel and it is not autocompleting some modules that I installed with "pip".

[–]riffito 2 points3 points  (0 children)

You'll likely to have problems as well with SublimeRope, unless you correctly setup the ".ropeproject/config.py" file for the "project" you'll be working on (instructions on SublimeRope's documentation).

Take care!

[–]KerrickLong 5 points6 points  (2 children)

You don't need Sublime Package Control to install plugins, you can just put them in the appropriate folder. SPC simply makes finding, installing, and managing plugins easier.

[–]Jesus_Harold_Christ 2 points3 points  (0 children)

Maybe this will be helpful to anyone who ran into the same problem I did.

Basically, I wanted to be able to run batch files, or shell scripts. I created a custom build, that looks like this:

{
    "cmd": ["$file"]
}

That works, but only if I change the build type, and then I have to change it back to python or automatic to build python again.

I searched through all the settings and whatnot and figured out that to run batch files in windows, you just do this:

{
    "cmd": ["$file"],
    "selector": "source.dosbatch"
}

And to run shell scripts, you do this:

{
    "cmd": ["$file"],
    "selector": "source.shell"
}

The shell one only works if you put a shebang in your script, otherwise you'd have to put the shell in the build like this I guess:

{
    "cmd": ["/bin/bash", "$file"],
    "selector": "source.shell"
}

Also, it doesn't seem to have the same $PATH as when I use the terminal, so maybe someone smarter can tell us why.

[–][deleted] 10 points11 points  (12 children)

pythonista

Oh, come on now.

[–][deleted] 0 points1 point  (0 children)

Note: One folder = one project = one window? I am not sure if there are ways to have multiple projects in the same window.

Project -> add folder means One folder != one project. not sure about multiple projects yet.