Home Download Buy Blog Forum Support

get current point

get current point

Postby leegeorg07 on Sun Nov 29, 2009 5:10 pm

Hi,
I am trying to make a Lorem Ipsum generator and I can't find how to get the current point in order to insert but I cant find it in the API does anyone know how? Also is it possible to have a prompt for a value (how many times to put the text in)?
leegeorg07
 
Posts: 4
Joined: Sun Nov 29, 2009 5:05 pm

Re: get current point

Postby leegeorg07 on Mon Nov 30, 2009 7:46 am

okay, that makes sense. Can I just check that your saying to use a snippet instead and have the plugin repeat that snippet?
leegeorg07
 
Posts: 4
Joined: Sun Nov 29, 2009 5:05 pm

Re: get current point

Postby leegeorg07 on Tue Dec 01, 2009 8:05 am

cool that worked great thanks, but just wondering, is it supposed to give all of this?

Code: Select all
lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
leegeorg07
 
Posts: 4
Joined: Sun Nov 29, 2009 5:05 pm

Re: get current point

Postby jps on Tue Dec 01, 2009 10:16 am

That looks like you're hitting the standard lorem ipsum snippet, which is bound to "l,o,r,e,m,tab", make sure you're entering something like "l,o,r,e,m,5,tab", which will match vs. the key binding that sublimator suggested.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: get current point

Postby leegeorg07 on Tue Dec 01, 2009 5:01 pm

cool, to be honest I think I will just use the snippet, it seems to work better :)
leegeorg07
 
Posts: 4
Joined: Sun Nov 29, 2009 5:05 pm


Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests