Sublime Forum

[ST3] MiniPy - inline python evaluation

#1

MiniPy
Sublime Text 3 plugin - inline python evaluation.
https://github.com/vim/MiniPy

For example you can write 3.14*0.6 and get the result (1.884) in your text. It also supports multiple selection.

Another feature is the use of $ as accumolation variable, e.g. having the following multipe selection:

arr$]
arr$]
arr$]

will result with
arr[1]
arr[2]
arr[3]
similarly:

arr[0 ] arr[0]
arr$+2] -> arr[3]
arr$*3] arr[6]

Usage

To evaluate term, highlight and:
Super + Shift + X for Mac OS X
Ctrl + Shift + X for Windows/Linux



0 Likes

Multiple cursor - is possible this?
#2

Just wanted to give you some credit for this! There are some “insert number sequence” plugins out there, but this one is just so flexible… Thank you!!

0 Likes