sassanh / qnvim

Neovim backend for Qt Creator
MIT License
134 stars 8 forks source link

Cursor blinking and size #12

Closed tom-anders closed 4 years ago

tom-anders commented 5 years ago
  1. The cursor is blinking even in normal mode, is there a way to turn this off?
  2. When I zoom with Ctrl+Mouse wheel, the cursor width stays the same instead of adjusting to the current font size.
sassanh commented 5 years ago
  1. The cursor is blinking even in normal mode, is there a way to turn this off?

It doesn't seem to be easy, I can't find an easy way to disable blinking cursor or change its rate. the hard way would be to subclass the text editor and override some internal methods. If you know any easy way please let me know, otherwise lets keep it open for future.

2. When I zoom with Ctrl+Mouse wheel, the cursor width stays the same instead of adjusting to the current font size.

I was able to reproduce it on my machine, I'll try to fix it in the weekend,

sassanh commented 5 years ago

@tom-anders the zoom issue among many other issues is resolved in my latest commit on master branch. It needs to be tested before being released so I'll try to provide a release next week after I have time to test it, but meanwhile you can clone and build for yourself.

tom-anders commented 5 years ago

Cool, I'll have a look!

sassanh commented 5 years ago

The second issue (ctrl+mouse wheel ruining cursor block size) should be fixed in this release: https://github.com/sassanh/qnvim/releases/tag/v1.2.0

Shatur commented 4 years ago

It doesn't seem to be easy, I can't find an easy way to disable blinking cursor or change its rate. the hard way would be to subclass the text editor and override some internal methods. If you know any easy way please let me know, otherwise lets keep it open for future.

I suggest to use cursorFlashTime. I already tested it locally and it works. I can send you a PR if you like the proposed solution.

sassanh commented 4 years ago

I can send you a PR if you like the proposed solution.

It would be very nice if you could provide a pull request.