razetime / bqn-vscode

BQN programming language vscode plugin (symbol input, syntax highlighting)
MIT License
22 stars 6 forks source link

Character insertion when using vim plugin #31

Closed KilianVounckx closed 9 months ago

KilianVounckx commented 9 months ago

I am using the vim plugin. I don't know if this is an issue with them or with this plugin, or just the interactions between the two. When I want to insert a bqn primitive to the left of some other text, the cursor jumps one character too far to the right.

E.g. If I have a file with contents:

Hello, World!

If the cursor is between the o and r in world, and I want to type a special character like ↕, the cursor ends up between r and l, instead of still being before r.

Curiously, this only happens when entering some characters. The 'double letters' like 𝕩 and 𝕎 don't have the same problem.

razetime commented 9 months ago

please tell me if the advice in the readme related to bqn.enableBackslashCompletion helps (link).

KilianVounckx commented 9 months ago

I did not see that, my bad. I just tried it however and it did not change anything. When I enter the bqn.enableBackslashCompletion in my settings file, it says it is an Unknown Configuration Setting.

razetime commented 9 months ago

oh, yes, it's part of the current dev release. I'll publish a minor patch to the package registries soon.

KilianVounckx commented 9 months ago

I see, I'll try it again in a while then. Thank you!

KilianVounckx commented 9 months ago

I tried it in the release branch and it worked.