Replace only in selection

Hi, would be great if it were possible to replace only in selected text.

Currently it’s necessary to use menu Edit > Edit With BBEdit and Selected text only in BBEdit’s Find window. That’s of course doable but gets a bit cumbersome if there’s a lot to replace (because I want to compile after each replacement which means I currently have to switch between BBEdit and Script Debugger a lot)

Have you tried doing it via script? You can get the selection, act on that using AppleScript (or BBEdit if you prefer), then set the updated selection.

Hey Pete,

There’s no way to get that granular with the ODB Editor Suite.

@ShaneStanley’s suggestion is your only means to improve this particular workflow. BBEdit is immensely scriptable, and Script Debugger isn’t bad – so you can do quite a lot between them.

-Chris