Textmate for linux with gedit

December 15th, 2007 by Sadri Sahraoui | Print Textmate for linux with gedit

Gedit snippets plugins allow smart code completion ala Textmate. Here is how to configure gedit to enable this feature :
1/ Download this file it contains symfony smart completion code
2/ Click “Edit” > “Preferences” and then select the plugins tab, scroll down unitl you found “Snippets”, Check it

screenshot-gedit-preferences.png

3/ Go to “Tools” > “Manage Snippets” and click on the import button you should now see the new snippets.

Snippet Manager

NB : The triggers are the small words between parentheses, for example for link_to(…) just type linktoTAB and tab again to move from first parameter to the next one. I’ll update this post soon with a full list of triggers.

, ,

 

7 Comments

  1. Thanks a lot, I successfully installed the snippets, although I had to manually create the directory $HOME/.gnome2/gedit/snippets (gedit directory only contained a ‘tools’ directory).

    I’ll be using gedit + your symfony snippets plugin since e-texteditor is still not available under linux.

  2. Hi,

    Is there a way to make get added automatically?

    now, I have to type:

    php[tab]linkto[tab].. etc

    I already have php snippet, that produces $0

    I just ‘d like get it there without typing it…

  3. brainfault

    what do you mean by without typing it ? you have to write something to activate the trigger !!

  4. wik

    CAUTION!
    Might cause great productivity :)

    Thanks!

    p.s.
    CTRL-SPACE to trigger snippets without typing anything ;)

  5. wik

    Is there a way to highlight yaml syntax?

Trackbacks

Leave a Reply