Feature Requests

Now that there’s a View menu I have a place to put that stuff. In the near future it will look something like this:

View
----
Editor \>
 Show Invisibles
 Show Line Numbers
 Other Stuff...
Asset List \>
 Name Column
 Alias Column
 Type Column
 Location Column
Terminal Pane
Preview Pane

And yeah, remembering the spacing of the columns seems like a reasonable request. :slight_smile:

Jay

[import]uid: 9440 topic_id: 7025 reply_id: 45966[/import]

I’d hoped to have color themes in place by now but things got pushed back a ways. Partly because stuff like fixing bugs takes priority over (most) cool features. :slight_smile:

There’s nothing particularly hard about adding theme support, it’s just a little time-consuming.

What I’d like to do is have the ability to “suck” color info from TextMate themes. I don’t think there’s any way I’ll add complete TextMate theme support (the editor internals are just too different), but being able to pull the color info from them would be cool.

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 45969[/import]

Something’s been in the editor for a long time but “hidden” from all but a few users, code folding. Here’s a quick peek at it:

http://youtu.be/lFSqCk1b9VY

That should be available to all (as an option in Preferences) in the next version of CPM.

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 46195[/import]

Jay,

Code folding looks HOT! I think I will like the highlighting of the folded area of the code…You know what I mean. I think I will like that, it looks cool at least.

Does it handle things like:
[lua]local foo = function fooFunction()
–all kinds of code
end[/lua]

correctly? If it does, you rule. If it doesn’t, you still rule, but we need to figure it out :slight_smile: [import]uid: 5317 topic_id: 7025 reply_id: 46251[/import]

I wish I could rule in all ways, but I don’t think it can handle this style…
[lua]local foo = function fooFunction()[/lua]
…at this time. Mainly due to the fact that I’m a real newbie at regex. If I can find someone to give me the right “formula” to add to what’s there, I think it can be done.

I will keep pounding on it.

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 46284[/import]

Widget checkbox in the code generator and also to be able to add a folder with subfolders to Library. This come in use when working with widgets. [import]uid: 13560 topic_id: 7025 reply_id: 46290[/import]

Yeah, the whole Library thing and folder support is going to see some shaking up in v3.

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 46291[/import]

I will see if I can dig up my REGEX bible…I will let you know. [import]uid: 5317 topic_id: 7025 reply_id: 46308[/import]

So here is what I came up with, give it a try and see if it works out.

  
^(local)?(\s)\*\w(\s)\*[=](\s)\*[function]  
  

Here is my thinking…
from the start of the string

^

match optionally the word “local”

(local)?

than any amount of white space

(\s)*

than any word

\w

than any amount of white space

(\s)*

than an equal sign

[=]

than any amount of white space

(\s)*

than the word function

[function]

Not sure that is going to do it, but I need to brush up on my regex some, so give it a shot. Hopefully one more versed is regex can help out if I am completely off base. [import]uid: 5317 topic_id: 7025 reply_id: 46312[/import]

Awesome! I was working on it the same time as you and got it working – then saw your message and realized I hasn’t taken into account that local could be optional. D’oh! So let’s say it was a joint effort! :slight_smile:

But anyway, it looks like it’s going to work. I haven’t tested it for the code folding, but the drop-down list of functions never included the ones that used that style, and now they all show up!

Woot!

As soon as I fire up my dev environment next time I’ll check it against the code folding, but I’m pretty sure it’ll work – the list of functions and code folding both work off the same regex expression.

Thanks for the nudge and the code!

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 46318[/import]

Alright here ya go:

^(local)?(\s)\*(\w)\*(\s)\*[=](\s)\*[function]\*(\s)\*(\w)\*[(]\*(\w)\*[)]\*  

I tested the matching using the following website

http://myregexp.com/

using the following data:

local foo = function fooFunc()
end
local myvar = function myFunction()
end
sooper = function sooperFunc()
end
local test = function testFunc(params)
end
test2 = function testFunc2(params)
end

If you enter the above into the applet, and check the multiline checkbox, it will highlight the appropriate lines in the test data, and skip the lines with “end”.

Does that help out?

edit: the above code also takes into account that you could pass in words as arguments to the function. I think I used the * so it can accept any number of words, but that may need to be tweeked, since you need to account for a comma (,) for multiple words passed in…I think. A quick test should tell me.

edit again:
This

^(local)?(\s)\*(\w)\*(\s)\*[=](\s)\*[function]\*(\s)\*(\w)\*[(]\*(\w[,]\*(\s)\*)\*[)]\*  

picks up everything above and the following cases

local test = function test(word, word2, wordagain)

and the same without the local at the front. [import]uid: 5317 topic_id: 7025 reply_id: 46320[/import]

Hey Jay…

Did that regex expression work out, or should I play with it some more?

Mike Hovland
Blue Rocket Labs [import]uid: 5317 topic_id: 7025 reply_id: 47029[/import]

Mike, no, don’t play with it more – at least not yet. I got it close enough that I don’t think it will be a problem, but CPM stuff is in a “holding pattern” while I finish my Horse Crazy app. And then Roly-Polies. But *then* I’ll be hopping back on CPM and working on v3. :slight_smile:

Thanks!

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 47036[/import]

No problem. I was actually surprised how easy it was to get that working so well.

M [import]uid: 5317 topic_id: 7025 reply_id: 47070[/import]

That online regex utility you pointed to is awesome – being able to select parts of the pattern to see what it affects is just so cool.

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 47086[/import]

Yeah, without that tool, I would never have figured out what I did. [import]uid: 5317 topic_id: 7025 reply_id: 47105[/import]

It would be awesome to be able to edit the auto-generated text that appears with a new file. Maybe it’s possible? Seems like I should just be able to read a template file and edit it…

I know CPM want to promote their editor to the people already using it and code posts online but it be more beneficial to my team to be able to have a template for revision notes, the date/time, and anything we want to put in there as a team. It’s much easier for me to require them to fill out a template when it’s just “there.”

Thanks,

-David [import]uid: 27681 topic_id: 7025 reply_id: 50477[/import]

I’d like to see a feature that reduces the cost of CPM bringing it more in line with the other 3rd party tools I use with Corona. The $29 range would be perfect! :slight_smile: [import]uid: 63352 topic_id: 7025 reply_id: 50479[/import]

David – in the next release of CPM you’ll be able to change the templates that are used to generate the code. The plan all along was to pull that in from a text file but a time crunch during initial development had me put that off.

Matthew - yeah, that would be cool. If a rich uncle dies, or something like that, it could happen. :slight_smile:

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 50540[/import]

Oh, wait, back on the template thing for the code file headers…

Right now it inserts things like Project Name, username, etc., by replacing tokens in the header. For example:

^p = Project name
^u = Username
^dt = Date/time file was generated

…and so on.

Is there anything special anyone can think of that would be handy to have automatically inserted in that header when the file is generated?

Adding more tokens is trivial at this point.

Jay
[import]uid: 9440 topic_id: 7025 reply_id: 50542[/import]