Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4066264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:06:43+00:00 2026-05-20T16:06:43+00:00

I am not 100% sure if this is the right place to be posting

  • 0

I am not 100% sure if this is the right place to be posting this question, but I could not think of anywhere else.

I having been using textmate for around 6 months to write Ruby on Rails applications.

The snippets and stuff are nice. I am wondering if it is possible to edit to words at the same time. I am using the mcol snippet which generates a add_column and remove_column in a database migration.

When the code is generated it highlights the table_name and changes both occurences of the word table_name when you start typing.

Hoping that this can be done to any word that you select.

Cheers

Eef

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:06:44+00:00Added an answer on May 20, 2026 at 4:06 pm

    Since the whole idea of TextMate is to have an editable editor(!), if you look at the HTML bundle, the shortcut ctrl-shift-w invokes this:

    <${1:p}>$TM_SELECTED_TEXT</${1/\s.*//}>
    

    So, to add a custom shortcut to wrap a selection in a pair of editable text strings (which is what you want, I think?), go to Bundles > Show Bundle Editor then choose New Snippet from the add + button (bottom left) and use (e.g.):

    ${1:editme}$TM_SELECTED_TEXT${1/\s.*//}
    

    where ‘editme’ is the default ‘doubly-editable’ value. If you add a new snippet shortcut in the ‘Key Equivalent’ field (I used ctrl-shift-alt-W) you can then wrap any selection in an editable pair of words. Depending on what you need, the same syntax might be expanded to match your requirements?

    Note: once the shortcut is allocated, you can’t edit a snippet in place – you need to start again (I think – couldn’t find a way around that).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure whether this is the right place, but I have a question related
I'm not 100% sure I'm doing this right, but I think I've found an
This is not 100% programming related. But I think this is somewhat useful because
Hey, not 100% sure what this error means. % for f in * ;
I'm trying to create a simple search page, but I'm not 100% sure how
I'm not 100% convinced that this is a good idea, but I bumped into
I know this is a beginner's question, but I've been searching online and all
After two years of Android development I'm still not 100% sure about what resources
Let me start by saying im not 100% the way Im handling this is
I've been fiddling with Redmine in the past few days and not 100% happy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.