flycheck-tip
flycheck-tip copied to clipboard
Popup continuously redrawing when moving around
Hello,
When I use flycheck-tip to display popups if I move around in a section that is marked with an error the tooltip will continuously be redrawn as I move around or type. This can make performance slow as you type. Here is an example of what I mean:
Otherwise I've had great success with the plugin. Thank you for writing it.
Hi, thank you for you give me good issue. I never noticed about that:)
As far as I know, you have two options to solve this problem.
1: change the timer delay 2: show error-tip only during using flycheck-tip-cycle(or revese) function
the 1 configuration is like this:
;; This variable is timer delay that flycheck.el and flycheck-tip.el use to show erorr.
(setq flycheck-display-errors-delay 3)
the 2 configuration is like this:
(flycheck-tip-use-timer nil)
If you choose the number 2 option, I recommend to use this package(I'm author) https://github.com/yuutayamada/mykie-el It help you to move around errors with few keybind configuration:
(require 'mykie)
(mykie:set-keys global-map
"C-l"
:default (recenter-top-bottom)
:C-u&err (mykie:do-while
"n" (error-tip-cycle-dwim)
"p" (error-tip-cycle-dwim-reverse)))
In above configuration, you can use default C-l keybind and C-u C-l keybind which you can move error point. After you type C-u C-l key, you can move other error point by typing n or p key(n is next, p is previous).
I wrote error-tip-cycle-dwim instead of flycheck-tip-cycle in above example. You can use flycheck-tip-cycle too(of course). the deference is error-tip-cycle-dwim fucntion can show flymake's error too.
Changing the timer delay increases the delay of the initial popup. Once the popup is displayed however it continues to redraw continuously.
For option two it seems that it mostly works. One small problem is that the keybinding does not appear to go away once displayed unless I fix the error and rerun. Is there a command to make the popup go away?