Just thought maybe I could do it with AppleScript, but apparently BBEdit has no entry in the script dictionary for "search in selection". It's the only option not there. :-(
On Saturday, October 20, 2018 at 9:11:03 AM UTC-7, John Springer wrote: > > Came here to pose exactly this question. Many years ago, BBEdit worked > that way: if you had text selected and hit Cmd-F, it checked "selected text > only" automatically. I would love this feature, and wondered why they ever > took it out. Will try to train myself to use the Ctl-shift-S control. I > guess the condition for automatic search-in-selected should be text is > selected AND the selected text isn't the same as the search object. > > In response to someone that mentioned selection might be what you are > looking FOR, I can see that being handy as well. Of course you can always > select and hit Cmd-E (in pretty much any app) to store the search object. > > Maybe we should have 3 ways to invoke Find: > Just open the Find dialog > Open Find with search object = selected ( like Cmd-E, Cmd-F). > Open Find with "selected only" checked (like Cmd-F, Ctl-shift-S). > > > On Saturday, September 2, 2017 at 5:19:59 AM UTC-7, [email protected] > wrote: >> >> Is there a way to make that happen, i.e. that when text is highlighted, >> the search window automatically has the "Selected text only" checked, and >> when there is no text selected, it doesn't? I've looked through Preferences >> and nothing sticks out, and I searched the menus and manual and didn't find >> anything there, either. That would lead me to suspect there isn't a way to >> do it, but I thought I'd check to make sure. >> >> I don't want to do something different in each case, I just want Cmd-F to >> open with the box checked if there is text selected in the document, and >> unchecked if there isn't. >> >> I'm used to text editors doing that on their own; it's a pain to have to >> remember to check it and then remember to uncheck it the next time I search >> with no text selected. >> >> Thanks! >> > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <https://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]. Visit this group at https://groups.google.com/group/bbedit.
