api-docs icon indicating copy to clipboard operation
api-docs copied to clipboard

hitting ctrl-d does not open up api doc

Open veqryn opened this issue 9 years ago • 4 comments

Hitting ctrl-d does nothing at all. I've also tried adding a keymap for an unused key mapping, such as 'ctrl-q': 'api-docs:search-under-cursor', and this also did nothing at all. It appears you must hit ctrl-shift-p, then select your app from the command menu, and then select which doc you want to view, and then finally the doc opens. This is not ideal.

veqryn avatar Nov 19 '15 19:11 veqryn

I have the same problem. Adding a keymap doesn't help, but ctrl-shift-p works ok. Atom 1.2.4, api-docs 0.0.3, both Windows and Linux.

hindsholm avatar Dec 04 '15 10:12 hindsholm

Atom 1.4.3, api-docs 0.0.4, ArchLinux x64 - ctrl-d seems to be taken by another shortcut (find and select next occurrence of selected text), by remapping to ctrl-i in keymap.cson works for me:

'atom-workspace atom-text-editor':
    'ctrl-i': 'api-docs:search-under-cursor'

broiniac avatar Feb 09 '16 17:02 broiniac

Thank you @Alphanumerix! Your keymaps.cson snippet did the trick. I am now able to bind a key to search-under-cursor. ctrl-d still doesn't work, but it is not a big problem.

hindsholm avatar Feb 09 '16 21:02 hindsholm

CtrlD is more than just find and select next -- it's the primary entry point for the amazing multi-cursors feature!

Multicursors weighs in about half of reasons why I use Atom in the first place.

That this package so negligently tries to hook on the same (built-in, default) keybinding is next to offending.


Anyway, this little PR #37 of mine solves the problem properly, by changing the default hotkey.

ulidtko avatar Aug 23 '17 09:08 ulidtko