| Author |
Message |
Index > TextMate Bundles ~ Wordpress bundle only partially working ? |
| matty |
Posted: Thu Apr 26, 2007 11:36 am |
|
|
|
Registered User
Joined: 26 Apr 2007
Posts: 1
|
|
| Back to top |
|
| pnomolos |
Posted: Thu Apr 26, 2007 6:04 pm |
|
|
|
Registered User
Joined: 22 Feb 2007
Posts: 136
|
Hi matty,
I dug through the bundle a bit, and it looks like it's going to need a bit of work to port it over to e. There's some weird require issues (this actually may be a bug with e itself, not the bundle) and the bundle (written mainly in Ruby) is referencing some support classes that don't yet exist in e. I will compare to my TextMate install when I get home and see how easily this could be switched.
Cheers |
_________________ "I'm so retro I was cool before being cool was cool." |
|
| Back to top |
|
| gtcaz |
Posted: Thu Apr 26, 2007 6:30 pm |
|
|
Registered User
Joined: 23 Dec 2006
Posts: 732
|
First off some of the filenames are illegal in Windows.
I fixed that and uploaded it here.
The other thing I see is the plist stuff (SUPPORT + '/lib/osx/plist'). I don't think we have that in e. Looks to me like that's the only thing that needs to be ported. |
|
|
| Back to top |
|
| pnomolos |
Posted: Thu Apr 26, 2007 8:05 pm |
|
|
|
Registered User
Joined: 22 Feb 2007
Posts: 136
|
| We have 'lib/plist' but the Wordpress bundle is referencing a PropertyList class/module which I haven't been able to find anywhere; that class/module is also referenced from within the TextMate.tmbundle directory, so I'm assuming that it's part of the core of TextMate that just hasn't been ported yet. |
_________________ "I'm so retro I was cool before being cool was cool." |
|
| Back to top |
|
| ttscoff |
Posted: Fri Apr 27, 2007 7:35 am |
|
|
|
Registered User
Joined: 27 Apr 2007
Posts: 1
Location: Winona, MN
|
Hey guys,
I'm the author of the Wordpress bundle, among others. I'm not overly familiar with your progress on E, but I can tell you that the PropertyList module and plist library are part of the TextMate distribution and that the Wordpress bundle relies on the tm_dialog plugin. Not sure where you're at with porting that. If you have anything that can read a basic plist, you should be able to extract the lists of properties from the commands that use them and port them into whatever you would use to display a dialog. I'm sorry I can't be of more help than that.
The basic idea behind using the property lists was to avoid having a thousand snippets, and to ease modifications to the bundle. Wasn't thinking about porting it at the time . If I can be of any actual help, let me know. |
|
|
| Back to top |
|
| d3a1i0 |
Posted: Fri May 16, 2008 12:42 am |
|
|
|
Registered User
Joined: 08 May 2008
Posts: 5
|
@gtcaz Thanks for fixing that. I was just trying to download it from thier site and noticed the file names were not allowing me to extract them.
@ttscoff Hey, I'm from MN too. Live in Shakopee now.
I would like to see more on this bundle. I am using it as is for now. The author says that he is not going to be updating it on his site. Someone else want to take on the project? |
|
|
| Back to top |
|
| tea |
Posted: Fri May 16, 2008 7:20 am |
|
|
|
Registered User
Joined: 28 Mar 2008
Posts: 92
|
ttscoff: please don't use obsolete PropertyList module, use OSX::PropertyList instead. Also, please, please don't use it and tm_dialog anyway . E supports OSX::PropertyList ruby module, but does not support tm_dialog yet. "Right way" to go is to use TextMate::UI module instead - this makes code cleaner, and most of UI functions work on E!
Actually I've done this already - see http://pastebin.ca/1019850 for patch (filenames may differ because of these "illegal" filenames). With this patch applied the bundle should work on TextMate and on E.
edit: I mean it works on E if you use latest and greatest ui.rb file from here (put it into %PROGRAMFILES%\e\Support\lib). |
|
|
| Back to top |
|
| spazzwig |
Posted: Thu Jun 19, 2008 2:12 am |
|
|
|
Registered User
Joined: 19 Jun 2008
Posts: 3
|
I would love to see this working in e. I'm going to try tea's solution above. Also, since I don't see it mentioned anywhere on this board I thought I'd point out this:
edit: seems I'm too new to post URLs, so if you look up 'yoast wordpress-textmate-bundle' on google you'll find the site.
Looks like he's branched off the one under discussion here. I've downloaded his but not sure how to evaluate getting it to work with e (not even sure how best to approach fixing the illegal windows names). Hoping someone here with experience porting bundles will be interested in taking a look!  |
|
|
| Back to top |
|
| tea |
Posted: Thu Jun 19, 2008 5:29 am |
|
|
|
Registered User
Joined: 28 Mar 2008
Posts: 92
|
| Easiest way is to unzip bundle archive with cygwin's unzip command - that way invalid filenames would be dealt with automatically. After that the bundle should work on E without any more tweaking because this version is already ported to TextMate::UI. |
|
|
| Back to top |
|
| spazzwig |
Posted: Thu Jun 19, 2008 7:53 am |
|
|
|
Registered User
Joined: 19 Jun 2008
Posts: 3
|
Great, thanks tea. I updated cygwin and added unzip, added the bundle and it looks like it mostly works. I haven't tried it yet in action but reviewing it under the bundles menu everything looks good except the 'structure' submenu, which just lists 4 items as 'unsupported action'. Not really sure what I'm missing, and what is available should be very useful
Perhaps this should be submitted somewhere for full porting? Very new to all this so not sure what the MO is. |
|
|
| Back to top |
|
| tea |
Posted: Thu Jun 19, 2008 8:28 am |
|
|
|
Registered User
Joined: 28 Mar 2008
Posts: 92
|
I noticed 'structure' menu too. The catch is info.plist (main file which defines menu configuration) mention these 4 actions but there are no these actions anywhere. No idea why, maybe bundle author forgot them?
Ported bundles (from textmate bundles repository usually) get their way to ebundles repository, but I'm not sure about this one. First of all, it requires no porting at all (apart from invalid filenames, which is easily fixable), and second I doubt there would be many users for it (hm guys, how many of you edit/create wordpress themes?) With no maintainer who use it and want to keep it up-to-date and working the bundle would not be of much usefulness. So I think it is better to just let authors to do their job and if new versions won't work on e then we can think again what to do. |
|
|
| Back to top |
|
| spazzwig |
Posted: Thu Jun 19, 2008 8:51 am |
|
|
|
Registered User
Joined: 19 Jun 2008
Posts: 3
|
I wondered if those actions just didn't exist, but wasn't certain I cross referenced the plist info properly to see. Maybe it's for something he plans to add later (assumed that with the loop > navigation submenu)... or maybe it's amnesia
Cool, that all makes sense. Thanks again for the pointers! |
|
|
| Back to top |
|
|
|