Hi all.
I use TextMate for Ruby programming all day everyday (professionally). I just recently bought a new computer and am slowly migrating everything over. I wanted to rebuild my TextMate snippets and commands in the process, so I could reevaluate what I've created, fix minor annoyances I have found in usage, and improve on what I have created.
I have a pretty large set of additions in my old Ruby bundle. I have tons of snippets for iterators, testing and common language constructs, a few handy commands (like switching { ... } to do ... end), and even snippets for many standard libraries (like YAML::dump/ load and an OptionParser skeleton).
My questions are:
1. Is there any interest in me providing these additions publicly? 2. Would if be allowed for me to add some or all of this to the default Ruby bundle?
I figure I'm going to be entering all this again anyway. It doesn't matter to me if it's just for me or for all of us. I didn't know if there is some desire to keep the default bundles pretty small or anything though. Let me know if there's interest and, if so, how best to provide it.
Thanks.
James Edward Gray II
On Apr 2, 2006, at 6:09 PM, James Edward Gray II wrote:
like switching { ... } to do ... end
This one is already included with the Ruby bundle (Ctrl-{), but it does not work with blocks with multiple statements:
obj.method do |blah| ... ... end
obj.method { |blah| ...; ... }
It works both ways, so you can convert { ... } <-> do ... end.
My questions are:
- Is there any interest in me providing these additions publicly?
- Would if be allowed for me to add some or all of this to the
default Ruby bundle?
I would be interested in them.
And while on the subject of the Ruby bundle -- a "module" snippet would be a good one to add.
-- Daniel
What you could do is move them to a custom bundle "Ruby James" or similar then post the link on this list. Let people take a look. :)
On 2/4/2006, at 20:27, Michael Sheets wrote:
What you could do is move them to a custom bundle "Ruby James" or similar then post the link on this list. Let people take a look. :)
That sounds like a good idea. The Ruby bundle does IMHO need some clean-up before more stuff is added.
And what about tying the Bundle Editor with a web app to share snippets with other people, like http://textsnippets.com/ (or others). 1. create an account on the site 2. create a new snippet, and check the "Share on snippetpool.com" (or whatever) checkbox. 3. that sends the snippet to the site, and makes it public for others. 4. others can then browse other peoples snippets, find new ways to improve their editing experience, etc. To add a snippet from the site to your TM app, you could use the txmt:// scheme, or download a .tmbundle file, I don't know (some sort of security check must take place, maybe peer review, to avoid trojan commands or macros).
What do you think ?
2006/4/2, Allan Odgaard throw-away-1@macromates.com:
On 2/4/2006, at 20:27, Michael Sheets wrote:
What you could do is move them to a custom bundle "Ruby James" or similar then post the link on this list. Let people take a look. :)
That sounds like a good idea. The Ruby bundle does IMHO need some clean-up before more stuff is added.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
well, how about tagging the snippets and create feeds based on those keywords.
But maybe a snippet-blog would do the job as well: make categories for the general languages so one could get feeds based on those; open posting to registered (and possibly verified users) and have some, like 10 or so moderators?
Dan