Politics, Programming and Possibilities
7 Mar
Just a little note to say the syncPEOPLE on Rails Bundle for TextMate has reached 1.0 and is ready for download. Visit the syncpeople.com downloads page for links.
There is now a demo video available (low-bandwidth version here).
22 Responses for "syncPEOPLE on Rails 1.0"
Great screencast Duane, and an even better bundle. It makes TextMate indispensable while editing Rails apps.
(You got the name right as well, not bad.
WOAH!!!!!
If this thing actually does what that video does then this will be THE GREATEST THING EVER!!!!!
You so totally rock!
)
( it’s almost as good as the balance jr command
Wow, that’s great. The screencast is very nice and the features shown just blew me away. This is really inspiring and a great example for what is possible with TextMate.
Good job!
Great stuff! I really like it.
One feature request: maybe I’m missing something but when I click apple-option-shift+down inside a functional test I do not get any popup. It takes me straight to the controller. While nice, it would be nicer if I could be presented with a popup allowing me to go to the corresponding view/model/unit_test/fixtures
Jeroen: You should get the same context-sensitive menu all round, however, if your cursor isn’t inside the functional test or unit test class, then textmate’s scoping won’t work.
Duane: I can’t replicate the behaviour you described above, the key-combo works inside all other classes/method but not inside my test_model_controller.rb - could you please double check it is working on your end?
Also It does not propose going to the corresponding fixtures file, but maybe it’s not meant to do this
Duane: just making sure here, I click apple-option-downarrow, but nothing is happening anywhere — no go to file. Am I not executing this correctly?
Just to follow up from Ben’s situation:
“Just wanted to let you know that the commands work nicely if I go
through the menus to get to them. And I can execute them another time with the key strokes after that. But, as soon as I move the cursor, I can no longer execute the commands from the keyboard — I have to go through the menu again.”
If anyone else is experiencing similar problems, or finds a solution, please let us know.
This is a great bundle, Im having one small problem though (it might be a TextMate preference issue), at the end of your screencast you highlight the footer plugin (amazing timesaver), the only thing is that clicking it does not seem to bring up the file inside of my project, it always generates a new window even if the file is already open, did I miss something?
And super thanks for the cheatsheet, I must now have it tatooed on my arms.
Hmm, this looks amazing, but very little is working. I am getting error:
/Users/xxx/Library/Application Support/TextMate/Bundles/Rails.tmbundle/Support/bin/create_partial_from_selection.rb:11:in `require’: No such file to load — rails_bundle_tools (LoadError)
i checked, and the rails_bundle_tools are in the bundle’s lib folder.
using Textmate 1.5 build 906
thanks.. i’d really like to get this to work.
After some correspondence with J. Weir, we were able to produce the following solution for his situation:
“1. add ‘export RUBYLIB=~’ to your .bash_profile (if you are using bash)
2. Restart Textmate
if you are running ‘mate’ make sure it is from a Terminal which has the new $RUBYLIB variable loaded”
We’re still not sure why this was necessary in his unique situation so if anyone else has a similar experience, please pipe up.
Hey Duane, the bundle looks great, but I am also getting problems like J. Weir got. I get the same error (only once though, after it fails it doesn’t like showing up again). I’m also on 1.5 (v906)
Also calling the generate script gives me nothing (but at least I can get the dropdown in textmate), so I fiddled with the output and got:
2006-03-16 10:33:36.162 CocoaDialog[4299] Unknown dialog type dropdown. Available types:
fileselect, msgbox, yesno-msgbox, ok-msgbox, textbox, progressbar, inputbox, standard-inputbox, dropdown, standard-dropdown.
Okay, I solved half of my problem - Apparently there was an old directory “/Library/Application Support/TextMate” which was causing problems — I moved it away and the “Generate Script” command works again. I still can’t use the keybinding to select anything with the option-apple-down combination, though. It doesn’t even seem like TextMate is getting it - when I type the key it does nothing.
I had a little problem with the footnotes plugin. It didn’t seem to work with edge rails. Problem is on line 29 in textmate_footnotes.rb. pick_template_extension returns a Symbol, and not a String.
So
template_extension = template.pick_template_extension(template_path)
should become
template_extension = template.pick_template_extension(template_path).to_s
Tried your plugin. I’m having the same problem with the key stoke combinations not working. I have TextMate 1.5 (906). The command+option+shitf+down_arrow command works from my rhtml file but once I’m in a rb file it doesn’t work any more.
I found (and fixed) a smallish bug, which was stopping the apple+option+downarrow shortcut from working for me. The TextMate.open function takes a path and turns it into a URL, but doesn’t replaces spaces with “%20″, which is what a space encodes to in a URL. The third line below is the one I had to add for it to work:
def open(filename, line_number = nil, column_number = nil)
filename = filename.filepath if filename.is_a? RailsPath
filename.gsub!(/ /, “%20″)
options = []
I am also experiencing Greg’s problem, where the apple+option+shift+down options appear to all be out of scope in, say, a model.rb file. Possibly the “meta” scope declarations aren’t working for some reason? They don’t seem to show up in TextMate when I query the scope of the file.
Thanks for the amazing plugin, and please let me know if you have any questions, or know how to fix the scope bug. Thanks.
…it seems I spoke too soon about the scoping. It appears to be working just like it’s supposed to, now.
Great plugin, many thanks!
I tried footnote plugin but nothing appears in my app. I’m in development mode but no go.
Any clues would be appreciated.
Did you restart the server so the plugin gets an opportunity to reload?
[...] This plugin was also featured in the syncPEOPLE on Rails bundle for Textmate. [...]
Since several weeks the syncpeople site seems do be dead. Is there any possibility to get a copy of this plugin? Or the link to a mirror page.
Thanks in advance!
@Donald: The syncPeople on Rails bundle is now a part of Textmate itself and comes bundled with it. Just choose “Ruby on Rails” as your bundle for whatever files you’re editing
Leave a reply