Home Download Buy Blog Forum Support

[ST3] MiniPy - inline python evaluation

[ST3] MiniPy - inline python evaluation

Postby vim on Fri Mar 01, 2013 8:42 pm

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
Attachments
Screen Shot 2013-03-01 at 22.18.01 .png
Screen Shot 2013-03-01 at 22.18.01 .png (19.62 KiB) Viewed 1724 times
Screen Shot 2013-03-01 at 22.18.01 .png
Screen Shot 2013-03-01 at 22.18.01 .png (19.62 KiB) Viewed 1725 times
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: [ST3] MiniPy - inline python evaluation

Postby planet on Tue Mar 12, 2013 11:01 am

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!!
planet
 
Posts: 25
Joined: Fri Feb 17, 2012 12:30 pm


Return to Plugin Announcements

Who is online

Users browsing this forum: Exabot [Bot] and 16 guests