Please note that I did ask this on Super User and received absolutely no responses, so I decided to port this to a programming community that knows a lot more about TextMate.
Working in Ruby on Rails in TextMate, when I select a chunk of text, let's say
My text
and then hit the open bracket [
key on my keyboard, TextMate wraps the selected block in opening and closing brackets, as such:
[My text]
I'd like to modify this behavior so it wraps it in an opening bracket, space, space, closing bracket, as such:
[ My text ]
(mind the spaces).
How would I go about modifying this behavior?
I don't mind modifying it only while working for Ruby on Rails (i.e. .rb, .html.erb file scope etc...) but I'd prefer it if it would take effect throughout the application.
Thank you!