[TxMt] substitute space w/ underscore within snippets

Dan Lowe dan at tangledhelix.com
Sun Mar 11 16:38:04 UTC 2007


On Mar 9, 2007, at 7:03 PM, Yann Bettremieux wrote:

> My problem is if one of the menu item is more than one word, I'd  
> like to replace the space in the name with an underscore in the  
> URI. Anyone's got the code for that?

I don't think you can do that with a snippet, you probably need a  
command instead. Here's one I threw together that seems to do what  
you want.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Classed list.tmCommand
Type: application/octet-stream
Size: 853 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070311/10f5612b/attachment.tmCommand>


More information about the textmate mailing list