
It turned out that in the office I work for Mac, but the laptop - “17 MacBook Pro is not the best, in my opinion, option in terms of performance / price. Anyway, this is a topic for another conversation. Nout under Ubuntu.
And now the question: if Ruby / RoR code is who is your best Text User? That's right,
Textmate is the Great Fetish and Idol of all Ruby Mac programmers. So, the task was extremely simple - to find a tool for Linux as close as possible to Textmate in terms of the amount of functionality I use in my work.
It was difficult for me to determine where to post this small note because it concerns three topics at once: Linux, Ruby, usability. By and large, all of the following will apply to tweaking and working in Linux. For Linux users with experience up to 1 year :)
Oddly enough, after some wanderings, the choice fell on the editor “under the nose” -
gedit . Plus decently: included in the default Ubuntu suite, easy-going, GTK, flexible with plug-ins, free / opensource.
')
So, let's start to customize to high standards :)

First of all, I installed, in addition to Monospace, two other equally favorite fonts:
MONACO.TTF - the one that defaults to Textmate (download
from here , but I'm not sure about the legality of
this action )
And
CONSOLAS.TTF from MS. It's a little more complicated here:
1)
Click to view PowerPoint presentations
2) If not, then
install sudo apt-get install cabextract3) Extract:
cabextract PowerPointViewer.exe4) Extract again: cabextract ppviewer.cab
All fonts should be in ~ / .fonts (if not, then create such a directory in your home folder)
5) find -iname '* ttf' -exec cp {} ~ / .fonts / \;
Next in gedit: Edit - Options - Font and Colors
Now add color schemes and syntax highlighting.
In gedit, all this household must lie in:
/usr/share/gtksourceview-2.0/styles/By this we go to a
wonderful resource , download, follow the instructions and rewrite to the target directory under administrator rights. Of course, to achieve maximum similarity with Textmate, first of all we download one of the dark themes -
Darkmate
With the color, too, figured out, go to the most delicious - to the functional. These are plugins. First of all, if you have not done before, we do:
sudo apt-get install gedit-plugins(Edit - Options - Modules)
What adds to us a couple of delicious goodies in the face:
1. The built-in terminal (I somehow got used to doing everything with my hands - that's why I don't like NetBeans Ruby and Aptana)
2. Snippet (press CTRL-SPACE and get quick access to the input of templates of structures, or dial the first operator of the + TAB structure and get the same)
3. File structure (oh yeah!) In the sidebar. In fact, comfortable work without this with Ruby / RoR is not possible by definition.
4. Class structure in the current open file
5. Character table.
These are the main plugins. A lot of everything else can be found
there . By default, plugins for gedit should be in:
~ / .gnome2 / gedit / plugins(If there is no directory, create it)
The beauty of plug-ins is that they can dig, but they can not dig. This is me to the fact that for comfortable work you will most likely find a dozen or two more add-ons you need. (By the way, you can
add something yourself )

Now almost everything is fine. But. If the latest version of the gedit .rb file syntax supports “distorting”, then with a work with .rhtml and .rjs you need to take a couple of gestures - like everything under Linux, it is very simple:
wget
grigio.org/files/x-rhtml.xmlsudo mv x-rhtml.xml / usr / share / mime / packages
wget
grigio.org/files/rhtml.langsudo mv rhtml.lang /usr/share/gtksourceview-1.0/language-specs/
As a result, it turns out very nice and archiudobno for work. Use on health. Maybe I forgot about something or did not take into account ... so remind! After all, it seems, this is what comments are needed for, m?
PS By the way. If it is interesting, I can write and about how
vim turns into a hardcore and cross-platform tool for Ruby-developer, developing on a not very powerful machine or a fan of vim as such. Let me know :)