Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under textmate...

danguita says...

Llegó el momento de publicar el primer artículo (espero y deseo que de muchos) relacionado con CakePHP, uno de mis frameworks favoritos en cuanto a desarrollo de aplicaciones web. Es un framework escrito completamente en PHP, sigue el patrón de diseño MVC (Modelo-Vista-Controlador) y a través de una buena API, una gran comunidad de usuarios y un crecimiento exponencial de nuevas aplicaciones desarrolladas con ésta tecnología, está adquiriendo el reconocimiento que merece.


Muchos son los IDEs y editores de texto recomendados para el desarrollo de aplicaciones usando CakePHP (realmente casi cualquiera), aunque pocos son tan flexibles y rápidos como TextMate (versión exclusiva para Mac OS X, no gratuíto), que permite la integración de Bundles específicos de un lenguaje o framework para proporcionar una completa asistencia al desarrollador.

En el caso de CakePHP estamos de suerte ya que se inició un proyecto dedicado a proporcionar dicha asistencia en TextMate y que nos permite integrar el nuevo Bundle en nuestro editor siguiendo estas instrucciones:
  1. Verificamos que existe el directorio "~/Library/Application\ Support/TextMate/Bundles" (si no existe, lo creamos)
  2. Nos situamos en el directorio Bundles:
    $ cd ~/Library/Application\ Support/TextMate/Bundles
  3. Descargamos el bundle a través del repositorio SVN del proyecto:
    $ svn co http://svn.textmate.org/trunk/Review/Bundles/PHP%20Cake.tmbundle
Una vez hecho esto, volvemos a ejecutar TextMate (lo cerramos si ya estaba iniciado) y estará disponible una nueva sección en el Editor de Bundles:

Debemos tener claro que la citada asistencia al desarrollador a través de Bundles no convierte a TextMate en el editor imprescindible para desarrollar aplicaciones CakePHP, ya que un proyecto de cierta envergadura hará que un "simple" editor de textos como TextMate -aún con su gran flexibilidad- no sea suficiente y necesitemos recurrir a IDEs como EclipseAptana o NetBeans (los tres son multiplataforma).

Podríamos profundizar bastante para intentar acercarnos al IDE más aconsejable para CakePHP, pero la mayoría de IDEs modernos son suficientemente potentes y la decisión está vinculada al propio proyecto y/o preferencias en el equipo de desarrollo. Vuestras opiniones son bienvenidas.

Filed under: TextMate

glennrob says...

If you are a master of Vim and feel like a sea-change, or if you're just plain scared, you can set up Textmate as your default editor.

Whack this in your .profile (e.g. ~/.bash_profile), re-source it ( source ~/.bash_profile ), and off you go.

Filed under: textmate

glennrob says...

If you want to go from this;

to an aligned, and much more legible statement list like this;

The textmate key combination for this is: ⌥⌘] (Alt + Cmd + Bracket)

Filed under: textmate

Brian says...

I just released version 1.2 of my Textmate Trac bundle.  It includes an awesome new Preview command contributed by Tudor Marghidanu.  While editing a Trac wiki page, just hit command-option-control-p (same as Markdown, etc.) to pop up an HTML formatted preview of the page.  Seriously useful.  Thanks Tudor!

The command requires the Text::Trac perl module, which you can install from CPAN by running the following in Terminal:

sudo perl -MCPAN -e 'install Text::Trac'

If this is the first time you've used CPAN, it will probably ask you a few questions, and accepting the defaults usually works out well.

Enjoy.

Filed under: textmate

Brad says...

For the sake of this post let’s just assume that my desire to be write java in a text editor, and not an IDE, is justified.

My text editors of choice are first TextMate and second emacs. I use TextMate when I have the code local and emacs when not. I won’t run VNC or X Windows in order to have a UI to edit remote files. I have no tolerance for latency nor dependency on network connectivity when editing text. This is when I use emacs and most importantly screen so that if my connection dies it will be there when I reconnect.

I took a vacation from java for about a year and was quite the happy developer. As of late I’ve been back in that world. I built up an affection for TextMate and its simple expansion capabilities and wanted to give editing java in it a try. I quickly realized that I had my work cut out for me. On top of that my friends/coworkers think I’m a bit insane which I cannot deny. But I was up for the challenge and have reached a point where I’m happy, not elated but happy. There were multiple pieces of functionality that I missed but I’m only going to focus on one of the big ones here.

One of the basic IDE features is the ability to view the source of your dependencies. By that I mean I the ⌘⇧T Eclipse shortcut that allows you to view the source of a java file of a dependency jar. When writing java in a text editor without code completion this felt required.

Since it’s debut I’ve been intrigued by MacFUSE (and of course FUSE itself). The basic idea is that you can make a file system out of anything without hacking the kernel. I was hoping to see a shift back to the file system enabling users of any editor or command line util to have some of the benefits provided by IDEs. Unfortunately I’ve yet to see this happen in the java world (please let me know if you have examples). A file system seemed like a good solution to my problem plus it gave me a real world reason to play with something new.

As a result I created a file system. The odd thing is that there’s nothing to open source. One of the complexities of java development is some companies have developed their own package management system over the years for one reason or another. At work we have a system that caches packages and source locally. Because I have access to the source I wrote a file system that was essentially a symlink farm to the already expanded source. At this point there’s nothing to abstract and release publicly. If I see the need and find the will I might attempt it. Regardless, as a result I have the ability to grep the source of my dependencies and to browse them in anything that understands a file system.

My file system looks something like the following:

MyProject
|
\-> dependencies
    |
    \->MySourceCarryingDependency
       |
       \-> src
           |
           \-> com.company.package
               |
               \-> AClass.java
               \-> BClass.java

Essentially, this is similar to the tree of dependencies you’ll see in Eclipse for a java project.

The steps I took to create this:

  1. Install MacFUSE.
  2. Install the fusefs ruby extension. (Required only to develop/run a ruby FUSE file system.)
  3. Created an ant task that wrote my project’s classpath to a file. This just generates a file name “.run.classpath” in the project directory.
  4. Wrote a FUSE file system that on startup reads this file, finds the dependencies, and generates the file system.

File system creation via fusefs is simple. If you look at the demo in fusefs you’ll get the idea. You need to implement the following callbacks:

  • contents - array of directory and file names for a path
  • file? - boolean that states if the path is a file
  • directory? - boolean that states if the path is a directory
  • read_file - contents of a file

What’s my point of talking about this without releasing source? Basically, for those of us who prefer text editor s and the file system you don’t have to give up your editor for an IDE, at least for this. Don’t get me wrong, many developers love their IDE and I’m not knocking them (IDEs nor developers). But for those of us who prefer something else we have options and maybe they’re not out of reach.

Filed under: textmate

Desirade says...

TextMate brings Apple's approach to operating systems into the world of text editors. By bridging UNIX underpinnings and GUI, TextMate cherry-picks the best of both worlds to the benefit of expert scripters and novice users alike.

Filed under: TextMate

cjwoodward says...

I just spent the last couple of hours trying to figure out why my cucumber feature which uploads a file to s3 using paperclip wasn't working.

It turns out that the path is used when running a textmate command is different to path when you start a terminal session. I haven't found the reason for this but as a quick fix I added:

. /etc/profile

to the run feature and run single scenario commands in my textmate bundles. I will endevour to do some more research into this for a better solution.

Filed under: textmate

http://github.com/alkemist/

Filed under: textmate

It's taken me a while to realise the full awesomeness of TextMate as a code editor...

I've used Coda for web development on my MacBook for ages - occasionally though I would hear someone raving about TextMate and take a quick look.  Unfortunalty I'd quickly get intimidated by the steep learning curve for mastering it's keyboard shortcuts and promptly delete it before the end of the trial period and go straight back to Coda.

Well last Sunday I installed TextMate again, and for some reason this time I've really stuck with it.  I've put some effort in this past few days to learn it's keyboard shortcuts and boy am I glad I have...

With a bit of effort TextMate becomes so useful it's almost Zen like.  It's such a great focused environment for working in, it just seems to help me get more done more quickly.  Training myself to use new key combinations will take a bit of doing, but I've seen enough in the past few days to know that it's going to be worth it - this time I'm sticking with it.

For others thinking about switching to TextMate the best advice I can give is to focus hard on shortcuts most related to whatever language it is you code in.  In my case it's HTML, so I thought I'd share some of the most useful shortcuts I've managed to learn this past few days:

Control + Shift + V  Opens a window and validates the document HTML with the W3C Markup Validation Service.

Control + Shift + <  Opens a pair of opening/closing HTML tags.  By default these are set to <p> but with the element value selected so that it can quickly be changed.  Hitting the Tab key jumps the cursor into the element content.

Control + Shift + W  Wraps selected text with HTML tags.  By default these are set to <p> but again the element value is highlighted so that it can quickly be changed.

Cmd + Shift + L  Selects the current line.  Very useful when used just before the Control + Shift + W shortcut!

Option + Tab  Indent selection, can be used to easily indent an entire line, paragraph or just a selected item.

Option + Shift + Tab  Un-indent selection, again can be used to un-indent a selected line, paragraph or just a single item.

I've also found this exaustive TextMate keyboard shortcut cheat sheet.  Clearly I've got quite a long way to go before I become a TextMate master, but I'm sticking with it.

Filed under: textmate

beingbrad says...

Filed under: textmate