Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor moves stragely and slowly #232

Open
pukkancsanyo opened this issue Mar 22, 2024 · 4 comments
Open

Cursor moves stragely and slowly #232

pukkancsanyo opened this issue Mar 22, 2024 · 4 comments

Comments

@pukkancsanyo
Copy link

Hi,

I'm so happy that this piece of software is evolving so rapidly. I've recently had, however, a strage issue. If I want to move the cursor in edi_normal, it behaves stragely: it highlights a bunch of text, than moves slowly and puts the cursor to strange places. I also attach a gif, where you can see the problem. First, I hit two e-s, than the rest of the keypresses are w-s.

win_vind

I also copy here the log file, which clearly shows that there is something on, but I cannot really understand why.

========== System Infomation ==========
[Windows]
Edition: Windows 10 Pro
Version: 23H2
Build Numbers: 10.0.22631
Architecture: x64

[win-vind]
Version: 5.11.3.0

[Message] Version: huge
[Error] Access is denied.
[Error] move_fwd_word failed. An runtime exception occurred: failed opening clipboard (void __cdecl vind::bind::BindedFunc::error_process(const class std::exception &))

Do you have any idea how to resolve this?

Thank you for your time and help.

@pit-ray
Copy link
Owner

pit-ray commented Mar 22, 2024

As default settings of word-motion, win-vind employs the behavior-oriented the original Vim. However, the external application cannot get the text strings of other applications without using the UIA or copy. As a result, the default word motion copies some characters and analyzes the text structure.

If you want to prioritize the speed of word motion, you can use the <move_fwd_word_simple> function instead. For example, enmap w <move_fwd_word_simple>.
You can refer to this document in the cheat sheet.
https://pit-ray.github.io/win-vind/cheat_sheet/functions/#move_fwd_word

Thanks.

@gilbh
Copy link

gilbh commented Mar 27, 2024

Hi,

The strange/slowish movement happens even though I have the move_simple mapping. This happens to me in the latest version 5.11.3. When I switch to my previous version, 5.5.2.0, it behaves fine.

See video:

Document1.-.Word.2024-03-27.19-42-57.mp4

@pit-ray
Copy link
Owner

pit-ray commented Mar 28, 2024

@gilbh
I think the reason it is selected even with <move_fwd_word_simple> is because blockstylecaret_mode is set to flex. Please try set blockstylecaret_mode=solid or set noblockstylecaret.

https://pit-ray.github.io/win-vind/cheat_sheet/options/#block-style-caret

@gilbh
Copy link

gilbh commented Apr 2, 2024

Many thanks.

  1. set noblockstylecaret will not have any different in caret style between Edit and Normal -- that makes the work much harder, because no visual indication for the difference between them.

  2. set blockstylecaret_mode=solid will show a difference in caret style, but it is fixed width and very difficult to work with on proportional text.

Going back to the issue of slow cursor movement: it seems to me that previous versions (say, 5.8) did not apply text analysis for forward-movement with w, only for end-of-word forward-movement with e. Now text analysis is also applied for w. Is there a specific reason for this? Is it possible to return to the previous behavior of w or perhaps speed up text analysis in current version?

The above issues are major for working in Word, at least in my experience.

Sorry for "creating troubles" -- but just want to keep vind the coolest tool ever for working in Word ...

Thanks for your consideration of the above issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants