Home Download Buy Blog Forum Support

MiniPy

MiniPy

Postby vim on Tue Jun 16, 2009 1:25 pm

i have published the MiniPy on the public repo, again i was just inspired from EJ12N work.

i changed the trick, and i use variable 'x' as the accumulator of the result for each line in the selection, here are some examples:

example 1. mark the column with the 'x+1' on the code below, and press ctrl+e
Code: Select all
   arr[x+1] -> arr[1]
   arr[x+1] -> arr[2]
   arr[x+1] -> arr[3]
   arr[x+1] -> arr[4]


example 2.
Code: Select all
   random()           -> 0.215884125091
   x               -> 0.215884125091
   sin(1.2)           -> 0.932039085967
   1+2+3              -> 6
   34*5.5             -> 187.0
   "x" * 10           -> xxxxxxxxxx
   len("abracadabra") -> 11
   x               -> 11             # the result of previous len is assigned to x
   x*2             -> 22             # the result of previous line is multiplied by 2
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: MiniPy

Postby ilya on Fri Sep 11, 2009 10:29 pm

Excuse me, but when I press ctrl+e, nothing happens, except the removal of selected expression.
For example, I select '1+2', press ctrl+e and result is ' ' (it's empty).
What could be wrong? :(


UPDATE: I think I understand what was happening. In PowerUser crtl+e = Delete Line :)


A new question — how to remove the plugin (MiniPy)? :roll:

Sorry illiterate newbie. :oops:
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: MiniPy

Postby vim on Sat Sep 12, 2009 6:09 am

the minipy was done in the short period of time between ej12n's poweruser screencast and it actual release, so i would suggest just using ej12n's poweruser anyway. to uninstall it, just delete the minipy.py file, i don't remember, but if it has its own folder just delete it all.

you can find all those with: %appdata%\Sublime Text\Packages and look for MiniPy, if you can't find it, look under User folder and just delete the MiniPy.py file
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: MiniPy

Postby ilya on Sat Sep 12, 2009 10:08 am

Vim, thank you!
All found, now I know where the plugins are stored and how to remove them.
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm


Return to Plugin Announcements

Who is online

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