rizzatti / dash.vim

Search Dash.app from Vim
MIT License
995 stars 59 forks source link

Call Dash without activating it #41

Closed Kapeli closed 9 years ago

Kapeli commented 9 years ago

dash.vim calls Dash by opening a dash:// URL. The problem is that the system forces Dash to become active when this URL is opened.

Currently, this is not an issue. However, a future update of Dash will add support for iOS remotes. While an iOS remote is connected, extensions are redirected to it directly and Dash on OS X is not shown at all. Unfortunately there's no way for me to prevent the system from activating Dash when you open the dash:// URL.

Instead of doing this:

open dash://query

Can you do this?

open -g dash://query

The -g causes Dash to not get activated if it does not want to and the user experience is a lot better as the active app does not lose focus anymore.

It is safe to make this change as soon as possible (no need to wait for a Dash update), as the current version of Dash already knows to activate itself if it needs to.

Kapeli commented 9 years ago

@rizzatti Can you take a look at this when you get a chance?

rizzatti commented 9 years ago

I'll update all the issues this weekend. Sorry for the delay, @Kapeli.

rizzatti commented 9 years ago

Fixed.

Kapeli commented 9 years ago

Thank you! :purple_heart: