jps wrote:tbh though, I'm not sure how much of a win it is to be able to access the current View via IPython.
The best I can come up with ATM, if you could attach to a running instance of Sublime, is the idea that it could make it easier to develop tests for plugins; eg, I could write a test that did this (pseudocode)
# get a copy of a window in sublime
wnd = getSublimeInstance().window
# create a new view
vw = wnd.newFile()
vw.insert(0, "My test string")
assert(len(vw.sel()) == 1, "should have selected one instance")
assert(vw.sel() = "text", "should have selected the word 'text')
This could make it easier to develop tests for plugins.
Also, possibly, there is the idea that you may want to run an automated or unattended process which uses Sublime as a 'text server', and uses the sublime API as you might use, say the MS Word COM interface to build documents.
Lastly, the idea reminds me of emacs/slime for developing LISP. In this setup, you actually attach to a LISP server from within emacs, and push commands from there. If I understand correctly, it might be good to push commands from Sublime into IPython, rather than starting in IPython and moving into Sublime. So I could type
in sublime, select it, choose the 'send to IPython' command, and watch IPython tell me what's in `os`.
Just fiddling with idea. I may have entirely the wrong end of the stick.