Cursor jumping in global search

What’s The Bug?

I can’t stress how how hard it was to catch it on camera, but this bug has been here sometimes but every time I wanted to capture it, it would disappear but i do my best to describe it.

So, when you switch applications and come back to anytype, and start typing in the global search, it does this random act with the cursor where sometime after you start typing, it decides to move the cursor back one character and not be at the end of your written words. As you can see around the 10s mark in the video, it briefly switches the cursor before the letter “s” and I have to manually revert it back to its original position.

When you delete all the words and start typing again that’s fine. Even, when you are working in Anytype and start searching it’s still fine. However, when you switch applications and you open the global search and start typing, as I’ve said, somewhere along the words, it decides to move back the cursor one position back. It works both when you are typing or hitting the “delete” key.

How To Reproduce It

  1. Do your usual work in Anytype.
  2. Go to another application for a second and do something over there
  3. Switch back to Anytype, and enter global search via “command + k”
  4. start typing your query
  5. witness that sometimes, completely randomly, it decides to move the cursor one poisition back so if you continue typing, your new letters come before the last one.

Image or Video

The Expected Behavior

Well, be able to type normally.

Additional Context

In this video, in order to force the error, I had to use the backspace key to delete and type something. But the issue exist either way even you just type normally.

Device

M1 MacBook Air

OS

Sequoia 15.1

Anytype Version

0.43.4

Network Mode

Anysync

Technical Information

OS version: darwin arm64 15.1.0
App version: 0.43.4
Build number: build on 2024-10-31 14:14:45 +0000 UTC at #5ede1352da2eb6be9c64ee3b29c22e9cdb9e4b6d (dirty)
Library version: v0.36.7
Anytype Identity: A88ZQg1KjcrgvxBHMLu7G1RUSAqN3Ut8bSAf1GhcBmFgbDya
Analytics ID: 0ab193d4-c094-450d-bb76-c756c6c372eb
Device ID: 12D3KooWAkjsB9HrDRXx8yczSYmvoYzUo45KjmKLmGdLsWGgG5Pc

On v.0.43.0-0.42.3, cursor jumping also happens to search in object-supported relation… Quite annoying.

P.S. I am adding remarks here to reduce redundancy because there are already several bug reports on cursor issues… Search in relation is closest to global search.

Ah yes, I’ve noticed that too but forgot to mention it.
:+1:

This report has been added to our issue tracker and received by the Development Team.

Yeah, i also have noticed this. This happens quite often. I guess its some race condition. Have no further detail.

I’m having this problem too. I also find it happens when creating a new object in a set and you’ll start typing and it will erase what you’ve written.

Still an issue in 0.43.21-beta

This issue has been fixed by the Development Team and will be implemented in an upcoming release.