On Jul 26, 2012, at 6:54 AM, Craig Francis <[email protected]> wrote:

> Ideally I would like to start typing a project name in QS, and if selected, 
> automatically open the /app/ or /httpd/ sub-folder in a text editor (e.g. 
> TextMate).

I've wanted the same thing, but not for certain folders. I just wished that if 
I right-arrow into TextMate to see recent documents and one of them is a 
folder, it would open in TextMate instead of Finder. Navigating to the folder 
any other way should behave normally.

I saw some code recently that makes me think Quicksilver should already be 
doing this, but it clearly doesn’t. Something to look into one day.

What I’ve done for now is create a trigger for ⌥⌘T to run “Quicksilver 
Selection ⇥ Open With… ⇥ TextMate”. The scope is set so it’s only active in 
Quicksilver. So whatever is in the first pane, I can quickly send to TextMate 
with a keystroke. And while I created it for use with recent folders, I’ve 
found it pretty useful in other situations. For instance, when you select a 
shell script and you’re not sure if “Open” is going to execute or edit it.

> At the same time, after selecting the project in QS, it would be nice for 
> there to be a quick way to also open the /resources/ and /config/ folders in 
> TextMate (or possibly the option to easily choose TextMate or Finder)... may 
> be a sub-item (e.g. typing "/"), or possibly a panel 2 thing (tab).

That's going to be up to the editor. :-) In my experience, TextMate does an OK 
job remembering the previous state of a “project”.

> I don't want the default action for all folders to open in TextMate (I still 
> use the standard "Open" option in most  cases)... its more so just for the 
> folders in /Projects/
> 
> I have been playing with custom Catalogues, but not had much luck yet, and 
> likewise automatically generating ".tmproj" files for each project.

I wouldn’t build up a big workflow around those since tmproj files are going 
away, though that would certainly do the trick as long as you’re on 1.x.

> Have you any ideas on how this could work? I suspect it may need a custom 
> plugin, but don't have any experience in creating one.

I can envision ways to simplify this with a plug-in, but I don’t know if it’s 
worth it. Especially if we can figure out the recent documents thing.

-- 
Rob McBroom
<http://www.skurfer.com/>

-- You received this message because you are subscribed to the Google Groups 
Quicksilver group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send 
email to [email protected]. For more options, 
visit this group at 
https://groups.google.com/d/forum/blacktree-quicksilver?hl=en

Reply via email to