Jump to content

Recommended Posts

Really happy about my Dash purchase today. :-)

Hopping that extension update with option for applying the code directly arrives soonish :-)

 

I've encountered a problem while adding this. The issue is that while pressing a modifier (e.g. CMD or ALT), Alfred changes the subtext of the item. However, I am not able to provide an alternate subtext for each item, but only for the entire workflow.

 

So basically this is what happens:

1. You search for something and Dash returns results for both snippets and documentation

2. If you'd hold CMD the snippets' subtext would change to "Expand", but the documentation pages' subtext would also change to "Expand", which is not really nice

 

Ideally, I'd like the subtext to change to "Expand" for snippets and to "Open in browser" for documentation pages.

 

I've postponed this feature until I figure out a way of working around this (e.g. find a different wording that would work for both snippets and documentation), or until Andrew provides an option for workflows to provide alternate item subtexts.

Link to comment

I've encountered a problem while adding this. The issue is that while pressing a modifier (e.g. CMD or ALT), Alfred changes the subtext of the item. However, I am not able to provide an alternate subtext for each item, but only for the entire workflow.

 

So basically this is what happens:

1. You search for something and Dash returns results for both snippets and documentation

2. If you'd hold CMD the snippets' subtext would change to "Expand", but the documentation pages' subtext would also change to "Expand", which is not really nice

 

Ideally, I'd like the subtext to change to "Expand" for snippets and to "Open in browser" for documentation pages.

 

I've postponed this feature until I figure out a way of working around this (e.g. find a different wording that would work for both snippets and documentation), or until Andrew provides an option for workflows to provide alternate item subtexts.

 

Andrew, please make it happen.

Link to comment
  • 1 month later...
  • 2 months later...
  • 2 weeks later...

If you search for something with a special character in it (i.e. $), this workflow will not match any results.

 

I.e: http://cl.ly/image/3m1e0N0k3r1e

 

When I try to find this item by searching for `$eq`, I get: http://cl.ly/image/051d1u2S352e

 

Are special characters being escaped?

 

Thanks for letting me know about this!

 

I think I fixed it. Redownload the workflow from kapeli.com/DashAlfredWorkflow.zip

Edited by bogdansrc
Link to comment
  • 3 weeks later...

I've encountered a problem while adding this. The issue is that while pressing a modifier (e.g. CMD or ALT), Alfred changes the subtext of the item. However, I am not able to provide an alternate subtext for each item, but only for the entire workflow.

 

So basically this is what happens:

1. You search for something and Dash returns results for both snippets and documentation

2. If you'd hold CMD the snippets' subtext would change to "Expand", but the documentation pages' subtext would also change to "Expand", which is not really nice

 

Ideally, I'd like the subtext to change to "Expand" for snippets and to "Open in browser" for documentation pages.

 

I've postponed this feature until I figure out a way of working around this (e.g. find a different wording that would work for both snippets and documentation), or until Andrew provides an option for workflows to provide alternate item subtexts.

Really looking forward to this feature.  

I'd actually prefer separate keywords for docs and snippets.  That would also allow you to only show the "Expand" modifier sub text when searching for snippets. 

 

Are there any current work arounds to make it expand by default?

Link to comment
  • 2 weeks later...

This is beautiful. Both the app and the workflow. I find myself constantly working away from any internet and this is awesome. 

 

1. It would be very useful to be able to restrict the search to a specific language. For example when I search "floor" that exists in pretty much every language, I'd like to have "dash php floor" restrict the search of "floor" to "php".

 

2. And in the same vein, but further again, it'd be really cool - and yes it's quite the bit of work - to have keywords for each API for restricted searches (example: "js" instead of "dash js", "php" instead of "dash php"). 

 

3. Also, is it possible - and if not can you make it so? - to search dash for other things than the actual functions? For example, if I forgot "strlen" in php, I might type "dash php string length" and find "strlen". That would really be great.

 

Keep up the good work. Already bought the app :)

 

Edit: oh well, request 1 and 2 are already taken care of in the alternate workflow posted in this thread :P

Edited by Florian
Link to comment

This is beautiful. Both the app and the workflow. I find myself constantly working away from any internet and this is awesome. 

 

1. It would be very useful to be able to restrict the search to a specific language. For example when I search "floor" that exists in pretty much every language, I'd like to have "dash php floor" restrict the search of "floor" to "php".

 

 

2. And in the same vein, but further again, it'd be really cool - and yes it's quite the bit of work - to have keywords for each API for restricted searches (example: "js" instead of "dash js", "php" instead of "dash php"). 

 

3. Also, is it possible - and if not can you make it so? - to search dash for other things than the actual functions? For example, if I forgot "strlen" in php, I might type "dash php string length" and find "strlen". That would really be great.

 

Keep up the good work. Already bought the app :)

 

Edit: oh well, request 1 and 2 are already taken care of in the alternate workflow posted in this thread :P

 

1 & 2: Dash allows keywords for each docset (see http://kapeli.com/guide/guide#docsetKeywords) or for collections of docsets (using search profiles - see http://kapeli.com/guide/guide#searchProfiles). The correct format would be "dash php:{query}". You can also change the workflow itself so that you can search for "php {query}" directly. This is explained in the workflow's README.

 

You can also use https://github.com/willfarrell/alfred-dash-workflow, which I think you already found.

 

3: That's Google's job, not Dash. Dash is for "I want to read the docs for X", when you know exactly what X is or at least have a pretty good idea. For when you have no idea what a function is called or what you need to do, you should Google. This is because no matter how much I'd try to allow searches like the one you described, Dash will never be even remotely as good as Google (or any other search engine).

 

And one more thing, it turns out that the display of "Nothing Found" is really annoying because in that case I want nothing to be returned to alfred so that I can run my google default search simply by pressing enter.

 

I agree. I don't use search fallbacks, so I didn't notice this. Dash won't return "Nothing Found" anymore in the next update (version 1.9.2). Thanks for the feedback!

Link to comment
  • 4 months later...

Hi Bogdan,

 

Longtime fan of Dash (and esp. the Alfred integration). The new version is absolutely amazing.

 

Thanks so much!

 

P.S. Don't you need to change your avatar and the workflow icon now?  ;)

Edited by deanishe
Link to comment

@Florian: Here's something funny. A while ago, I started to try to write just a quick little workflow to do just that. I put together a nice little script filter in order to display the result and then let you copy the value to your clipboard, but, and this is the funny part, whenever it went through, Alfred would treat the html encoded character (in its return xml) as, well, an encoded character, giving me the same output that I put in. Never did figure out a way around that.

 

Hilarious.

Link to comment

I'm gonna surf this wave of responsiveness from you, @bogdansrc, and ask something else that's been bothering me : it would be really cool to be able to copy the name of a function right from alfred. 

Often I'm looking up the correct spelling or the full name of a function and I'd just want to copy that...

 

Thanks for the amazing work ! 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...