farcaller / DashDoc

Dash integration for Sublime Text
Apache License 2.0
1.33k stars 78 forks source link

Added support for running a Dash search in the background #49

Closed stufflebeam closed 7 years ago

stufflebeam commented 7 years ago

These changes add support for running a Dash search in the background, without switching to Dash as the active application, keeping the focus on Sublime Text. This is useful when you're using a dual-monitor setup, or even just multiple windows side by side on a single screen, and you'd like to search while keeping your keyboard focus in the editor.

Key bindings can be set up for the regular search and then the background search like this:

    { "keys": ["YOUR HOTKEY"], "command": "dash_doc"},
    { "keys": ["YOUR HOTKEY"], "command": "dash_doc",
                               "args": { "flip_syntax_sensitive": true } },
    { "keys": ["YOUR HOTKEY"], "command": "dash_doc",
                               "args": { "run_in_background": true } },
        { "keys": ["YOUR HOTKEY"], "command": "dash_doc",
                               "args": { "flip_syntax_sensitive": true,
                                     "run_in_background": true } }
farcaller commented 7 years ago

Thanks 👍

stufflebeam commented 7 years ago

You're welcome - Thank you!