sublime-devdocs icon indicating copy to clipboard operation
sublime-devdocs copied to clipboard

Search doesn't work when nothing is selected

Open manuhabitela opened this issue 12 years ago • 4 comments

Hey,

When I try to search for something on devdocs without selecting anything but only placing my cursor on the word, devdocs doesn't search for anything. It only opens the url http://devdocs.io/#q=.

Currently using this gist that works great without selecting the word.

manuhabitela avatar Nov 27 '13 10:11 manuhabitela

Thanks @Leimi! I'm gonna check this. :)

vitorbritto avatar Nov 27 '13 17:11 vitorbritto

Tried the gist but it doesn't work in ST3 Is it for ST2 only?

It would be great if sublime-devdocs would not require to select the word. That's quite awkward, i.e. instead of just hitting F1, you have to press two keystrokes : Ctrl+D, F1

steven-pribilinskiy avatar Dec 29 '13 13:12 steven-pribilinskiy

ok, here's a solution the Run Multiple Commands.. Command plugin

and the hotkey binding

    { "keys": ["f1"],
      "command": "run_multiple_commands",
      "args": { "commands": [
            {"command": "single_selection", "context": "window"},
            {"command": "find_under_expand", "context": "window"},
            {"command": "dev_docs_search_selection", "context": "window"}
        ]}
      },

steven-pribilinskiy avatar Dec 29 '13 13:12 steven-pribilinskiy

Hey,

Used the gist on ST2 and using it on ST3 without any problem. Maybe the problem was with your shortcut setting that was in conflict with some other item?

manuhabitela avatar Jan 22 '14 16:01 manuhabitela