Open files using search a la Textmate

2011-07-20 Thread Paul Grave
I'm a Textmate user and I've just switched to BBEdit 10.  There is a
Textmate feature that I use all the time and I can't see any
equivalent in BBEdit.

In Textmate, rather than navigate through folders, I'd type CMD+T and
start typing the name of the file that I'm interested in, Textmate
shows a list of matches and pressing enter would load the file.  It's
a super quick way for opening files.  Is there a BBEdit equivalent?

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: 


Re: Open files using search a la Textmate

2011-07-20 Thread Zajkowski, James
On Jul 20, 2011, at 6:15 AM, Paul Grave wrote:

> In Textmate, rather than navigate through folders, I'd type CMD+T and
> start typing the name of the file that I'm interested in, Textmate
> shows a list of matches and pressing enter would load the file.  It's
> a super quick way for opening files.  Is there a BBEdit equivalent?

The closest is cmd-D.  It's not - IMHO - as fast or works as well as TextMate 
or Sublime Text.

--Jim

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: 


Re: Open files using search a la Textmate

2011-07-20 Thread ascarter
You can get PeepOpen (https://peepcode.com/products/peepopen). I wrote a 
plugin to support BBEdit for it and it ships as part of PeepOpen now. 
However BBEdit 10 has broke the plugin so I'll be fixing it in the next day 
or two.

Nice thing about PeepOpen is that is multi-editor so you can use it in other 
places as well.

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: 


Re: Open files using search a la Textmate

2011-07-20 Thread Gregg Thomason
I would give anything to have Peepopen run on 32-bit Intel, my mainstay 
machine is a 1st gen Intel MBP, so no 64-bit. 

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: 


Re: Open files using search a la Textmate

2011-07-22 Thread Paul Grave
Thanks Jim,

So what are the majority of BBEdit users doing?  Do they navigate
using the mouse to *quickly* find and open files?

I like BBEdit, but lack of this feature is driving me nuts.

On Jul 20, 2:33 pm, "Zajkowski, James"  wrote:
> On Jul 20, 2011, at 6:15 AM, Paul Grave wrote:
>
> > In Textmate, rather than navigate through folders, I'd type CMD+T and
> > start typing the name of the file that I'm interested in, Textmate
> > shows a list of matches and pressing enter would load the file.  It's
> > a super quick way for opening files.  Is there a BBEdit equivalent?
>
> The closest is cmd-D.  It's not - IMHO - as fast or works as well as TextMate 
> or Sublime Text.
>
> --Jim

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: 


Re: Open files using search a la Textmate

2011-07-22 Thread Brian Anderson
Here is what I got to work, based on the included plugin AND on os x
10.7 (Lion)

-- PeepOpen support for BBEdit
-- Launches PeepOpen for either the current project directory,
-- first project file, or the current file.

set _theFile to missing value

tell application "BBEdit"
if (count of text windows) > 0 then
-- Get the first text window. This will return any window that 
can
-- contain a text document (standalone window, project window, 
etc.)
-- and skips over Find windows, Scratchpads, and whatnot
set _firstTextWindow to text window 1

if (class of _firstTextWindow is project window) then
set _projectDocument to project document of 
_firstTextWindow
if (on disk of _projectDocument) then
set _theProjectDir to file of _projectDocument

tell application "Finder"
set _theFile to container of 
_theProjectDir
end tell
else
-- Shipping versions of BBEdit don't provide 
direct access
-- to the Instaproject root, so fake it by 
asking for
-- the first node from the project list
set _theFile to item 1 of _projectDocument
end if
else if (class of _firstTextWindow is text window) then
if (on disk of document of _firstTextWindow) then
set _theFile to file of document of 
_firstTextWindow
end if
end if
end if
end tell

if _theFile is equal to missing value then
-- No base file found for reference
-- Signal error by beep and end
beep
else
tell application "Finder"
-- To use this path as a hunk of a URL, we need to encode it.
-- Ask the Finder to give back a URL, and then extract the
-- salient text out of it
set _fullPath to POSIX path of _theFile
end tell


-- Construct the PeepOpen URL
set _peepOpenURL to "peepopen://" & _fullPath & "?editor=BBEdit"

-- Launch PeepOpen
open location _peepOpenURL
end if

On Jul 22, 1:48 am, Paul Grave  wrote:
> Thanks Jim,
>
> So what are the majority of BBEdit users doing?  Do they navigate
> using the mouse to *quickly* find and open files?
>
> I like BBEdit, but lack of this feature is driving me nuts.
>
> On Jul 20, 2:33 pm, "Zajkowski, James"  wrote:
>
>
>
>
>
>
>
> > On Jul 20, 2011, at 6:15 AM, Paul Grave wrote:
>
> > > In Textmate, rather than navigate through folders, I'd type CMD+T and
> > > start typing the name of the file that I'm interested in, Textmate
> > > shows a list of matches and pressing enter would load the file.  It's
> > > a super quick way for opening files.  Is there a BBEdit equivalent?
>
> > The closest is cmd-D.  It's not - IMHO - as fast or works as well as 
> > TextMate or Sublime Text.
>
> > --Jim

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: 


Re: Open files using search a la Textmate

2011-07-22 Thread ascarter
Yes, that's what I got working as well. I'm getting the code into github now 
for Geoffrey to include in the next PeepOpen release.

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at

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: