Open ssfrr opened 7 years ago
This is kinda by design (even though the command is misnamed then) -- do you actually want this to toggle or is it okay for you to use Esc to close the docs?
Ah, I see. I use the vim-mode-plus package which has a more-specific definition for escape
that overrides Ink's, so I didn't realize there was a keybinding to close the boxes. I can just rebind locally. Feel free to close, or leave open as an issue to re-name that command.
Wait, a lot of people use vim-mode. Is it complicated to make toggle actually showing/hiding docs?
Complicated? No, but I'm not sure about the correct behaviour here -- it seems annoying to me to have to ctrl-j ctrl-d
twice to get docs for some other symbol on the same line.
For now you can just rebind inline:clear-current
to some other keybinding in your keymap.cson
.
I don't use ctrl-j ctrl-d
for docs I have already a faster keybinding provided as a default from the proton-mode
package..
I can setup a custom keybinding for clearing the docs, but it would be awesome to me to have a way to either toggle them or clearing them automatically (by having just one doc message shown at a time).
Now, this is probably more a feature request than an issue, so feel free to close if none else is interested
The Esc key closes the latest documentation panel, but not any of the previous ones (if you've opened multiple).
Actually, it sort of does close the previous ones. One just has to execute the "toggle documentation" for the already opened documentation. Then it can be closed with Esc.
Oh, okay, that definitely is a bug. I'll have a look as soon as possible.
Okay, I can't reproduce that behaviour. Note though that Esc
is only supposed to close the docs on the current line.
I checked this, and you're right, that behavior works.
Running the "toggle documentation" command opens the documentation for whatever's under the cursor, but running it again doesn't close the docs.