Comments (6)
I think something like this should be revisited, as it seems when doc is really big, it hides the drop down list, which makes it hard to see. Also, some buffers (Cider REPL buffer) doesn't seem to close the popup when using manual-begin, so pressing M-h again just re-opens it.
from company-quickhelp.
I don't think so, personally, as the popup disappears as soon as you interact with the list of candidates (e.g. move between candidates) but I don't think it'll do any harm either. I'll accept a PR, in the hope that someone else finds it useful too, if you want to move your changes upstream :)
from company-quickhelp.
Yes, it's not a very perfect toggle function I'm afraid. I like it when I only rarely want to see the docs in the popup, but I think a better lisp programmer would improve it for other cases. Feel free to close the issue (or should I? I'm not really sure of the edicate with respect to these matters).
from company-quickhelp.
I've been having this problem for a while as well. Have you been able to pinpoint the problem location? Is it caused on company's end in the pre/post-command-hooks? Cause those could be temporarily disabled.
from company-quickhelp.
I havn't been able to no. I tried some things, and it wasn't working as well as it needed too, so I just disabled company-quickhelp and use C-h instead of M-h.
from company-quickhelp.
@didibus I eventually got around to fixing it. The following works - the problem is somewhere in the proper cancelling of the timer, although I'm not entirely sure what is happening anymore (I think I had it figured out when I wrote this but, now looking back at it I'm confused why the second version bugs out on rapid repitition). The first version is superior and seems to work fine. The second is a bit buggy -- if you repeatedly toggle very quickly (faster than the company-quickhelp-delay
I believe, but haven't actually tried to debug it), the popup seems to stop working until moving to another candidate.
(defun my-company-quickhelp-toggle-1 ()
"Toggle pos-tip help on/off."
(interactive)
;; tell `company-quickhelp--manual-begin' to start the timer
;; alternatively, cancel `company-quickhelp--cancel-timer'
(if (not (eq this-command last-command))
(company-quickhelp-manual-begin)
(x-hide-tip)
(setq this-command 'company-quickhelp-manual-begin)))
(defun my-company-quickhelp-toggle-2 ()
(interactive)
(if (not (eq this-command last-command))
(company-quickhelp-manual-begin)
(x-hide-tip)
(company-quickhelp--cancel-timer)))
from company-quickhelp.
Related Issues (20)
- ESS no documentation available HOT 10
- Tooltip xpos offset too wide by 5 chars HOT 4
- Use the same documentation window as lsp-ui-doc HOT 1
- Error running timer ‘company-quickhelp--show’: (wrong-type-argument overlayp nil) HOT 4
- [Question] Can color variables be theme-dependent? HOT 7
- Maintain terminal support. HOT 2
- Support display using `eldoc-box` HOT 2
- Does not work along with company-complete HOT 11
- Warning: ‘focus-out-hook’ is an obsolete variable
- Error running timer when setting company-selection-default to nil HOT 1
- Question: Which face is this? HOT 2
- Integration with `counsel-company` HOT 2
- Company-quickhelp eats newlines HOT 8
- documentation popup delay seems off by factor of 10 HOT 3
- Quickhelp content showing as part of the completition candidate HOT 3
- Docs appear in minibuffer on hovering keyword HOT 1
- Company showing blank popups HOT 1
- popup mishandled by display-buffer-alist HOT 9
- docstring for company-quickhelp-delay needs small fix? HOT 1
- Syntax highlighting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from company-quickhelp.