Home Download Buy Blog Forum Support

My very first plugin - add numbers to selections

My very first plugin - add numbers to selections

Postby iamntz on Wed Nov 28, 2012 5:06 am

Ohai guys! I just created my very first plugin (for which i'll write more chars in description).

So, what does it do?

Every now and then I need to do a multiselection and add a counter to each selection. Something similar with div>{$} in emmet/zen.

So, i had no idea if there is a plugin out there for this and i started to write my own.

https://gist.github.com/iamntz/5546478

All you have to do is to add `multi_select_numbers` into your keymap file. That's it! Now, whenever you press your key combination near to a # sign, it will replace it with a number.

Thoughts?

preview:
http://img.iamntz.com/jing/2012-11-28_1037.swf
Last edited by iamntz on Thu May 09, 2013 9:51 am, edited 3 times in total.
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: My very first plugin - add numbers to selections

Postby S0und on Wed Nov 28, 2012 8:52 am

Great work! but...

... there is a plugin for this: https://github.com/duydao/Text-Pastry
S0und
 
Posts: 70
Joined: Wed Oct 28, 2009 4:12 pm

Re: My very first plugin - add numbers to selections

Postby iamntz on Wed Nov 28, 2012 9:15 am

Yeah, but mine is better. You know, 'cause it's mine! :mrgreen:
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: My very first plugin - add numbers to selections

Postby sublimator on Wed Nov 28, 2012 11:40 am

iamntz wrote:Yeah, but mine is better. You know, 'cause it's mine! :mrgreen:


exactly :)

welcome to the dark side. careful, it's addictive ...
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: My very first plugin - add numbers to selections

Postby iamntz on Wed Nov 28, 2012 12:21 pm

welcome to the dark side

Thanks. It's pretty cold on this side :(
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: My very first plugin - add numbers to selections

Postby facelessuser on Wed Nov 28, 2012 2:54 pm

Yeah, it can be tough to tell the reception of people on the forums. People don't often post unless they have issues. Occasionally, there are some nice people who like to give kind words though. I am sure there are people trying it out though. I intend to give it a try when I get a chance.

For instance, my two most popular plugins are BracketHighlighter and HexViewer. BracketHighlighter is honestly the one I hear the most about. Being number 2 you would think I would good amount about about HexViewer...but I don't, it works, so there is nothing to complain about, there aren't really many more features you can request on it, I haven't had to fix a bug in it for a very long time, and it is not a plugin that is universally used. Lots of people like highlighting brackets, only a few need to look at hex files. A lot of my plugins are niche plugins, unless you have a specific use for that functionality, or realize there might be a better way to do what you already do, you probably don't need them. Not everyone needs a hex viewer/editor...but as an embedded programmer, I use it a lot.

I always write stuff I like and am interested in and will personally use, that way if no one wants to use it, I am still happy.
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm

Re: My very first plugin - add numbers to selections

Postby facelessuser on Wed Nov 28, 2012 5:08 pm

@iamntz it would be nice if your plugin prompted for starting number and also maybe frequency (like by twos, by tens, etc.).

Currently it is only useful if you are starting a new list that starts from 1 and goes by ones.

I would just open an input panel and have the user enter that info. Like 30:10 would start at 30 and increment numbers by 10. If one isn't provided, I guess you could default it. But then you could also add support for lists that decrements opposed to increment. Add support for floats, hex, etc.

There is a lot you can do to make this really useful.
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm

Re: My very first plugin - add numbers to selections

Postby iamntz on Wed Nov 28, 2012 5:23 pm

@faceless:
I think you understood that this:
It's pretty cold on this side

It's because i didn't got any feedback. When in fact, it was because there is silence on the „plugins announcement” section (and on forum, in general) lately.

I didn't really expected that anyone could find this useful or that i'll get any feedback. But... i was wrong. I received feedback and ideas. Thanks!

(ps: feels funny - in a totally good way - to me to get feedback from users like you & castles :mrgreen: )
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: My very first plugin - add numbers to selections

Postby facelessuser on Wed Nov 28, 2012 5:40 pm

iamntz wrote:@faceless:
I think you understood that this:
It's pretty cold on this side

It's because i didn't got any feedback. When in fact, it was because there is silence on the „plugins announcement” section (and on forum, in general) lately.

I didn't really expected that anyone could find this useful or that i'll get any feedback. But... i was wrong. I received feedback and ideas. Thanks!

(ps: feels funny - in a totally good way - to me to get feedback from users like you & castles :mrgreen: )


Yeah, it is nice to get feedback. It helps you make good decisions early on how people actually might use things. I often need it to help sort out intuitiveness as well; what seems intuitive to me, sometimes is quite convoluted to others, it is nice to get those kinds of things cleared up early before you invest a lot of code into it.

I wrote a tool once and got no feedback after many many meetings throughout development. And when it finally got released, a flood of complaints (everyone knew it would impact them, but no one bothered to try it throughout the entire development)...I was so annoyed.
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm

Re: My very first plugin - add numbers to selections

Postby iamntz on Thu Nov 29, 2012 12:45 pm

Hehe, just added your suggestion: a pattern to follow on counting numbers!

pretty addictive stuff :geek:
Last edited by iamntz on Thu May 09, 2013 9:51 am, edited 1 time in total.
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Next

Return to Plugin Announcements

Who is online

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