On 2/3/15 at 3:17 PM,
justin....@gmail.com (Justin
Driscoll) wrote:
>Wherever the cursor is placed in BBEdit it underlines the
>current word and all other instances of that word. Is there a
>way to quickly replace all those instances without copying it,
>opening find/replace, pasting, finding and so forth?
Sure. Select the word, and choose the menu command Search -> Use
Selection for Find (Cmd-E in my setup). Then type the
replacement text over the selected word, select it, and choose
Search -> Use Selection for Replace (Option-Cmd-E for me). Then
use the command Search -> Replace All (Option-Cmd-=).
Check your menu key assignments for these - I don't remember if
mine are standard.
You could also easily write a script that would let you simply
place the cursor in the word you want, then evoke the script
(with an assigned key combo), which would select the word, make
it the Search pattern, prompt you for the replacement, and then
perform Replace All.
HTH
--
- Bruce
_bruce__van_allen__santa_cruz__ca_