franzheidl / alfred-workflows

Workflows for Alfred
MIT License
608 stars 62 forks source link

Add search in subl command #7

Closed zenorocha closed 10 years ago

zenorocha commented 10 years ago

Alfred has a robust search feature. Using the subl command would be much faster and easier if you could search for a folder instead of writing its entire path.

Reported by @JonathanReem on https://github.com/zenorocha/alfred-workflows/issues/37

franzheidl commented 10 years ago

As stated in the README, this feature is included in Open With Sublime Text 2, Open With Sublime Text (v3), Open With Chocolat, and Open With TextMate 2, so no issue at all.

@zenorocha Have you ever considered using git submodules for your collection of workflows?

reem commented 10 years ago

@franzheidl that doesn't work. Trying, for instance, subl code (I have ~/code as a directory) gives me an error with "code is not a valid file or folder path."

zenorocha commented 10 years ago

@franzheidl I really wanted to use Git Submodules, but there are some repos (just like yours) that contains more than one workflow and I can't remove a folder inside of the submodule. Also many workflows aren't available on GitHub =/

franzheidl commented 10 years ago

@JonathanReem Oh yes it does: Type subl* (incl the asterisk) to trigger the file filter, subl is reserved as the keyword for opening open folders or selected folders and files from the Finder (or pass an optional path). subl* codeshould give you what you need.

franzheidl commented 10 years ago

@zenorocha OK, I see. As the number of workflows in my repo grows, I'm not quite sure whether including multiple workflows into one repo was such a good idea in the first place either.

zenorocha commented 10 years ago

I do encourage you to do that, just like @willfarrell did last week.

It's easier to control issues, version numbers, documentation and the project scope as a whole.

willfarrell commented 10 years ago

You can find them all at https://github.com/search?q=alfred-+%40willfarrell&type=Repositories&ref=advsearch&l= There are a few in dev right now (localhost, github and cdn), so do post any issues yet.

I made a blank repo to allow for easy setup of new repos. That may give you a head start.