Giter Club home page Giter Club logo

Comments (6)

didibus avatar didibus commented on September 24, 2024 1

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.

expez avatar expez commented on September 24, 2024

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.

nverno avatar nverno commented on September 24, 2024

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.

nverno avatar nverno commented on September 24, 2024

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.

didibus avatar didibus commented on September 24, 2024

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.

nverno avatar nverno commented on September 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.