[TxMt] Zap gremlins
throw-away-1 at macromates.com
Tue Mar 21 02:34:11 UTC 2006
On 21/3/2006, at 2:51, Trevor Harmon wrote:
> [...] Perhaps we simply need an extra command: "Remove non-ASCII
> Characters in Document".
You might, and you can just create it yourself.
Go to the Bundle Editor (Window menu). Locate the current command in
the Text bundle. Duplicate it and change it to:
perl -pe 's/[^\t\n\x20-\x7F]//g'
Then you have a command which remove all but ASCII (though it also
remove the control characters in ASCII).
If you only need it once, you can instead just fire the above command
using opt-cmd R (Filter Through Command…)
There is btw a Transliterate Word / Selection to ASCII which may also
work (it finds ASCII characters for the non-ASCII stuff in current
word / selection, for example making your non-breakable space into a
regular space etc.).
More information about the textmate