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

Langmap always remaps in normal mode #9432

Open
legokol opened this issue Jan 11, 2025 · 0 comments
Open

Langmap always remaps in normal mode #9432

legokol opened this issue Jan 11, 2025 · 0 comments

Comments

@legokol
Copy link

legokol commented Jan 11, 2025

Describe the bug
I have a langmap from Cyrillic to English like that:

"vim.langmap": "ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz"

If I want to replace a symbol using vim's r command, the replacement symbol always appears to be Cyrillic, regardless of what my current language is. Same goes for searching for characters with f command.

To Reproduce
Steps to reproduce the behavior:

  1. Enable langmap.
  2. Type some text like 123.
  3. With English layout press r twice with cursor on the first symbol. The result would be к23 instead of r23.

Expected behavior
Replacement or searching for letters works with respect to current layout.

Screenshots
Log from typing 123 and then trying rr on the first character:

2025-01-11 15:22:38.543 [info] Configuration changed
2025-01-11 15:22:44.789 [debug] 0 errors found with vim configuration
2025-01-11 15:22:44.790 [debug] Start
2025-01-11 15:22:44.790 [debug] Status bar: -- NORMAL --
2025-01-11 15:22:44.821 [debug] Handling key: <extensionenable>
2025-01-11 15:22:44.826 [debug] Finish.
2025-01-11 15:22:45.236 [info] Configuration changed
2025-01-11 15:22:45.237 [debug] 0 errors found with vim configuration
2025-01-11 15:22:45.431 [info] Configuration changed
2025-01-11 15:22:45.432 [debug] 0 errors found with vim configuration
2025-01-11 15:22:47.512 [info] Active editor: output:tasks
2025-01-11 15:22:49.581 [info] tasks closed
2025-01-11 15:22:49.581 [info] Active editor: untitled:Untitled-1
2025-01-11 15:22:51.195 [debug] Handling key: i
2025-01-11 15:22:51.199 [debug] Status bar: -- INSERT --
2025-01-11 15:22:52.947 [debug] Handling key: 1
2025-01-11 15:22:52.948 [debug] Adding Transformation {"type":"insertTextVSCode","text":"1","isMultiCursor":false}
2025-01-11 15:22:52.953 [debug] 1 change(s) to Untitled-1 because undefined
2025-01-11 15:22:52.958 [debug] Set nextStepStartPosition to [0, 0]
2025-01-11 15:22:54.063 [debug] Handling key: 2
2025-01-11 15:22:54.064 [debug] Adding Transformation {"type":"insertTextVSCode","text":"2","isMultiCursor":false}
2025-01-11 15:22:54.068 [debug] 1 change(s) to Untitled-1 because undefined
2025-01-11 15:22:54.383 [debug] Handling key: 3
2025-01-11 15:22:54.384 [debug] Adding Transformation {"type":"insertTextVSCode","text":"3","isMultiCursor":false}
2025-01-11 15:22:54.386 [debug] 1 change(s) to Untitled-1 because undefined
2025-01-11 15:22:56.833 [debug] Handling key: <Esc>
2025-01-11 15:22:56.836 [debug] Finished history step with 1 change(s)
2025-01-11 15:22:56.837 [debug] Status bar: -- NORMAL --
2025-01-11 15:22:59.783 [debug] Handling key: 0
2025-01-11 15:23:01.577 [debug] Handling key: r
2025-01-11 15:23:01.888 [debug] Handling key: r
2025-01-11 15:23:01.888 [debug] Adding Transformation {"type":"replaceText","text":"к","range":[{"line":0,"character":0},{"line":0,"character":1}],"diff":{"type":1,"line":0,"character":0}}
2025-01-11 15:23:01.892 [debug] 1 change(s) to Untitled-1 because undefined
2025-01-11 15:23:01.894 [debug] Set nextStepStartPosition to [0, 0]
2025-01-11 15:23:01.894 [debug] Finished history step with 1 change(s)

Environment:

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 1.96.2
  • OS: Linux (EndeavourOS, kernel 6.12.8)
@legokol legokol changed the title Langmap issue in normal mode Langmap always remaps in normal mode Jan 11, 2025
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

1 participant