[TxMt] Delete Until Period Macro -> Delete Back To Period Macro

Hans-Joerg Bibiko bibiko at eva.mpg.de
Fri Aug 10 08:15:00 UTC 2007


Hi,

someone asked for a "delete backwards to a period"-macro, meaning to  
delete the beginning of a "sentence" from the cursor.

Here is my trial. The only thing which doesn't work is to delete the  
beginning of the first sentence of a document.
Here one can press ⇧+↖ and ⌫. (Or is there someone who has an  
idea to modify the regexp ;)

If one would replace in both macros (DelToPeriod, DelBackToPeriod)  
the '\.' by [[:punct:]], one could delete to any punctuation mark,  
declared in the Oniguruma grammar, followed by a space or newline.


Cheers,

Hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DelBackToPeriod.tmMacro
Type: application/octet-stream
Size: 1199 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070810/4ac61977/attachment.tmMacro>
-------------- next part --------------



More information about the textmate mailing list