If you use TextMate on Mac, you have certainly come to appreciate its many useful features, not least its ability to “understand” the syntax of your text and adapt accordingly.
I mostly use it to edit RST (ReStructured Text) markup text files; one nice feature of TextMate Hyperlink Helper bundle is that it automatically recognizes URLs and makes them “clickable”.
However, by default, it enables the following of those links when you click the Enter key when the cursor is on that text – which is, to me, immensely annoying: it’s disruptive, non-intuitive and grows old really quickly.
The good news is that the key-sequence can be modified, although the way to do this is not really intuitive and required a bit of googling and then filling the blanks (am I the only one hating the default setting?).
From the `Bundles` menu, select `Edit bundles…`: this opens another window, with all the bundles listed on the left and the associated actions; select `Hyperlink Helper` and under `Menu Actions` (yes, even if it’s actually a keyboard action you want to modify) select the “Open Current URL” – this will open a text editor below the pane and a dialog box on the right pane.
In the right-side pane, click on `Key Equivalent` and either just delete the keypress, or replace it with something sane (I use Cmd-Enter).
Et voila – the annoying behavior is gone, but the awesomeness remains, for when you need it.
Leave a Reply