Re: Put selection into Quick Find

2013-08-19 Thread John Delacour

On 19/8/13 at 01:22, lawrence...@gmail.com (Lawrence San) wrote:


I tried to make the process more efficient by simply adding "paste"
like this:



set live search bar visible to true
paste



...but it didn't work; I still need to command-v. Why is that?


I tried that too, and you’d think it _should_ work, because 
the focus is in the search field and the selection is grayed 
out, but in fact ‘paste’ simply pastes instead into the 
selection in the document.  This means that ‘selection’ and  
‘paste’ in the Apple event context ignore the search field 
and consider only the text of the document itself.  Something of 
an anomaly, I’d say.  Moreover if you select the text in the 
search field and ‘tell app “BBEdit” to get the 
selection’, you get an error, whether or not text is selected 
in the document.


[ Bcc to supp...@barebones.com ]

JD

--
This is the BBEdit Talk public discussion group. 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: 

--- 
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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Resizeable 'Currently Open Documents' frame

2013-08-19 Thread Oliver Taylor
On Aug 19, 2013, at 10:07 AM, BBunny  wrote:

> Collapsing the project list or opening the Windows palette are not acceptable 
> alternatives. The first takes too much time since I use my project list all 
> the time, and the second takes additional screen real estate. Mac users have 
> come to expect this simple UI convention, so why not give it to them?

This is a forum for users. If you have a feature request you should submit it 
directly to the developers.

About a dozen people have attempted to help you (more than once) work around 
this limitation - that's all this mailing list can do. Is there something else 
we can do to help you?

-- 
This is the BBEdit Talk public discussion group. 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: 

--- 
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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Put selection into Quick Find

2013-08-19 Thread Lawrence San
On Mon, Aug 19, 2013 at 5:29 PM, John Delacour  wrote:

> tell application "BBEdit"
>   activate
>   tell front text window
> set the clipboard to (get selection as string)
> if live search bar visible is true then
>   set live search bar visible to false
> end if
> set live search bar visible to true
>   end tell
> end tell
>

Thanks, that's helpful. I see that "paste" is in the BBEdit AppleScript
Dictionary, but my AppleScript is extremely rusty. I tried to make the
process more efficient by simply adding "paste" like this:

tell application "BBEdit"
activate
tell front text window
set the clipboard to (get selection as string)
if live search bar visible is true then
set live search bar visible to false
end if
set live search bar visible to true
paste
end tell
end tell

...but it didn't work; I still need to command-v. Why is that?

Thanks,
Lawrence

-- 
This is the BBEdit Talk public discussion group. 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: 

--- 
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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Put selection into Quick Find

2013-08-19 Thread John Delacour

On 19/8/13 at 20:50, lawrence...@gmail.com (Lawrence San) wrote:


I often use Quick Find in BBEdit 9.6.3. I'd like to be able to use a
keystroke to transfer whatever text I've selected in my document (usually a
single word) into the Quick Find dialog, but I can't find one...


If you run this script (which can be assigned a key-stroke), it 
will put the selected text on the clipboard and highlight any 
text in the live search box.  You then need only type ⌘V to 
enter the text.


tell application "BBEdit"
  activate
  tell front text window
set the clipboard to (get selection as string)
if live search bar visible is true then
  set live search bar visible to false
end if
set live search bar visible to true
  end tell
end tell

JD

--
This is the BBEdit Talk public discussion group. 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: 

--- 
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.
To post to this group, send email to bbedit@googlegroups.com.


Put selection into Quick Find

2013-08-19 Thread Lawrence San
I often use Quick Find in BBEdit 9.6.3. I'd like to be able to use a
keystroke to transfer whatever text I've selected in my document (usually a
single word) into the Quick Find dialog, but I can't find one. The
Preferences define various keystrokes (such as command-e, etc.) for making
the selection the search text in the regular or multi-file search dialogs,
but the only Quick Find reference in there seems to be for showing Quick
Find (command-option-f), not for putting text into it.

In fact, it seems to me that if I have text selected when I call up Quick
Find, it should automatically transfer that into the field without my
having to use any extra keystroke. Currently the only way I can get the
selected text into there is to do a copy and paste, which isn't bad, but I
use it so often I'd prefer something quicker.

I could find nothing about this either online or in the User Guide. Perhaps
someone here has a suggestion? Thanks.

-- 
This is the BBEdit Talk public discussion group. 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: 

--- 
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.
To post to this group, send email to bbedit@googlegroups.com.


Re: Resizeable 'Currently Open Documents' frame

2013-08-19 Thread BBunny
Collapsing the project list or opening the Windows palette are not 
acceptable alternatives. The first takes too much time since I use my 
project list all the time, and the second takes additional screen real 
estate. Mac users have come to expect this simple UI convention, so why not 
give it to them?

-- 
This is the BBEdit Talk public discussion group. 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: 

--- 
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.
To post to this group, send email to bbedit@googlegroups.com.