On Feb 7, 2013, at 9:38 PM, Zephyr Mays <zephyr.m...@gmail.com> wrote:

> Apologies for the newbie question; I'm just discovering the power of BBEdit.
> 
> I'd like to change all instances of a character in a selection without 
> invoking the find/replace dialog (in this case the _ character).
> 
> I hope to select/highlight this: These_Underscores_Should_Be_Spaces
> 
> Hit a keyboard shortcut and have this: These Underscores Should Be Spaces
> 
> Thanks in advance for any suggestions; I don't even know where to start.
> 

If you made a text filter using sed it would be as simple as:

 sed 's#_# #g'

I'm on my iPad at the moment so I can't check out exactly how it's done but I 
think it would be something like 

     #!/bin/sh

     cat $@ | sed 's#_# #g'

    
Or perhaps the cat should be an echo. Anyway you get the idea hopefully.

TjL 

-- 
-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to