[TxMt] Delete Until Period Macro

Hans-Jörg Bibiko bibiko at eva.mpg.de
Thu Aug 9 15:15:04 UTC 2007


On Aug 9, 2007, at 10:34 AM, Lawrence Goodman wrote:

> I am not a computer programmer, but use TM as my word processor. I  
> am interested in creating a macro which selects the text from the  
> location of the cursor to the next period in the sentence and then  
> deletes that text. Can anyone tell me how I can go about that?
>
> Thanks for the help.

This is my suggestion. It gets also rid of e.g. "1.002" but not  
"e.g." in a sentence. If such cases like e.g. occur often then I  
would mean to write a separat script. An other case is if you always  
write two spaces after a period. That should be possible with a macro.

Hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DelToPeriod.tmMacro
Type: application/octet-stream
Size: 1608 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070809/b2688695/attachment.tmMacro>
-------------- next part --------------




More information about the textmate mailing list