Sublime Text - License for Chaos-Project?

Started by Ryex, January 31, 2013, 06:31:17 pm

Previous topic - Next topic

Ryex

Ok, I've now discovered the SublimeCodeIntel plugin and it now official.

there is nothing that any other Editor does better than SublimeText. except perhaps Build Management which Visual Studio takes the cake on.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

WhiteRose

I've actually used Sublime Text myself for a few things, and I do really like it a lot. It feels so "fluid," even just for little text-editing things. Though I'm fine using the free version myself, I'm happy to chip in a few dollars to pay back Ryex if other people want to use it.

Spaceman McConaughey

Quote from: Ryex on June 19, 2013, 11:43:45 pm
I see no reason not to share it between a few close friends. but only a few...



Heeey, buuuuuuddy... :)

Ryex

September 22, 2014, 10:40:32 pm #23 Last Edit: September 22, 2014, 11:33:11 pm by Ryex
Ok, grave dig but OH MY GOD I'M IN LOVE!

ok so I told you guys about regular expression searching right? how you can do it with every file in your code base?

well... I noticed that when regular expressions are enabled it highlights capture groups "()" and you have to escape them to find prens. so I though "why does it let you define capture groups if you can't get the out put of them?"

so I did a little digging. turns out you CAN get the out put and use it in the REPLACE field!

I have 90+ files to modify and change the template references on. I was doing it by hand for the first ~15

then I did this.


Find: class (\w+)\(Templates\.(\w+)\):
Replace: from PyitectConsumes import $2_Template\n\n\nclass $1($2_Template):


hit replace.

"do you want to replace occurrences in 77 files?"
Yes.

BOOM

refactor done.

every instance of something like:
Code: python
class WeatherEffects_Dialog(Template.WeatherEffects_Dialog):

replaced with
Code: python
from PyitectConsumes import WeatherEffects_Dialog_Template


class WeatherEffects_Dialog(WeatherEffects_Dialog_Template):



EDIT:
I just closed 3 issues on the tracker  in about 2 hours which I had estimated would take me the rest of the week. all thanks to this one feature.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

Yeah, but if you just used a normal full-featured IDE, it would have been just as easy. Sure, it makes it easier than other text editors, but it's not like you are forced to use a text editor. It is just using IDE-like abilities.

Yes, it is a very good text editor, but I still don't see the huge deal here.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Ryex

I'm sorry but I'm going to have to completely disagree. No IDE I've ever encountered had this kind of powerful regexp replaceability. and I dont care how well designed a IDE's refactor tools are designed they can not compete with the flexibility and power offered here.

My point is thus. Show me any IDE. I can replace it with this text editor and not lose any power.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

Regex find/replace is not something that has never been done before, not anything groundbreaking. If this works best for you for the language you are using, then by all means. I am not saying anything bad about the program, indeed, I think it does appear better than Notepad++ in many ways, and I will definitely be giving it a try.

As for regex find/replace, that's not even uncommon in an IDE. For a text editor, doing it in all source files, yes, that is uncommon.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Blizzard

I know it's not uncommon, but I don't think that I've seen and IDE with regex search and replace.

On the other hand Notepad++ has that feature for years. But until now I've used it exactly once. It's a cool feature, but its usefulness is probably limited to refactoring.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.