I do this more times a day than I can count. Select text to replace, Cmd-E to use selection for find. Edit the text and re-select it. Cmd-Opt-E to use selection for replace. And then Cmd-G for find next to see if there's another instance in the document. I'll do this pretty much any time I'm cleaning up or refactoring code just to double-check whether the change I'm making now needs to be repeated elsewhere in the current file. I then use Cmd-Opt-F for replace and find next. If there are a lot I use Cmd-Opt-= to simply do the replace all. And sometimes Cmd-Shift-F to switch over to multi-file mode to search the entire code base for the same change. There might be a custom menu shortcut in there (or at least a throwback to an older menu shortcut) and it's all so much muscle memory now.
[fletcher] > On Dec 5, 2015, at 8:41 PM, Oliver Boermans <[email protected]> wrote: > > > On 6 December 2015 at 08:59, Greg Raven <[email protected] > <mailto:[email protected]>> wrote: > I gave it the keyboard shortcut of Cmd-E! > > When there is an instance of the desired replacement within easy reach the > Use Selection for Replace shortcut is nice to have too: > > 1. Select text to replace. > 2. Invoke: Search: Use selection for find (⌘E) > 3. Select the text to replace it > 4. Invoke: Search: Use Selection for Replace (⌘⌥E) > 5. Invoke: Search: Find… (⌘F) > 6. Invoke: Replace All (⌥⌘=) > > > -- > This is the BBEdit Talk public discussion group. If you have a > feature request or would like to report a problem, please email > "[email protected]" rather than posting to the group. > Follow @bbedit on Twitter: <http://www.twitter.com/bbedit > <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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" 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 [email protected]. To post to this group, send email to [email protected].
