Author Topic: Sublime Text - License for Chaos-Project?  (Read 10428 times)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: Sublime Text - License for Chaos-Project?
« Reply #20 on: July 14, 2013, 07:56:15 PM »
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.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2339
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: Sublime Text - License for Chaos-Project?
« Reply #21 on: July 21, 2013, 12:37:08 AM »
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.

Offline Spaceman McConaughey

  • Legit Poo Poo Man
  • Lexima Warrior
  • *******
  • Posts: 2002
  • LV: 46
  • Gender: Male
  • muh murph
    • View Profile
    • Titties, titties, and more titties!
Re: Sublime Text - License for Chaos-Project?
« Reply #22 on: July 21, 2013, 12:53:43 PM »
I see no reason not to share it between a few close friends. but only a few...


Heeey, buuuuuuddy... :)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: Sublime Text - License for Chaos-Project?
« Reply #23 on: September 23, 2014, 04:40:32 AM »
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.

Code: [Select]
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) [Select]
class WeatherEffects_Dialog(Template.WeatherEffects_Dialog):replaced with
Code: (python) [Select]
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.
« Last Edit: September 23, 2014, 05:33:11 AM by Ryex »
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.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 297
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: Sublime Text - License for Chaos-Project?
« Reply #24 on: September 23, 2014, 06:31:46 AM »
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.

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: Sublime Text - License for Chaos-Project?
« Reply #25 on: September 23, 2014, 06:38:56 AM »
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.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 297
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: Sublime Text - License for Chaos-Project?
« Reply #26 on: September 23, 2014, 06:47:53 AM »
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.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19985
  • LV: 648
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Sublime Text - License for Chaos-Project?
« Reply #27 on: September 23, 2014, 07:27:19 AM »
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      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


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

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