VSCodeVim / VSCodeVim/Vim

[Bug Issue: Will made the replica word after use the Mac shortcut to translate from zh-tw to zh-ch, vice versa] [Bug 議題: 透過 Mac 的快捷鍵在繁中簡中切換時,會出現原本轉換前的副本]

Open
#8,308 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
Will made the replica word after use the Mac shortcut to translate from zh-tw to zh-ch, vice versa

To Reproduce
Steps to reproduce the behavior:

  1. Enable the Vim extension

  2. Remove all vim extension keybindings setting

  3. Remove all vim extension settings

  4. Type the word in zh-tw or zh-cn and use the Mac keyboard shortcut

  5. 確認啟用 Vim 套件

  6. 移除所有 keybindings 中關於 Vim 套件的設定

  7. 移除所有 settings 中關於 Vim 套件的設定

  8. 在編輯器中,透過快捷鍵進行簡中繁中切換

Expected behavior

  • Translate the word without replica.
    I had try without extensions and with all extensions except enabled the Vim extension.
    And it worked as expected.

  • 正常情況是直接覆蓋原本選取的文字
    我已在當前環境中測試過下列情況:

  1. 在其他編輯器環境中測試:正常
  2. 以無任何插件的方式啟動 VSCode ,在此編輯並測試:正常
  3. 開啟我任何的插件,但將 VSCode vim 套件 disabled 並進行測試:正常

Screenshots

https://user-images.githubusercontent.com/9117894/225164922-a2707684-613b-444d-bc82-c8fd9e4deb63.mov

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.25.2
  • VSCode version: Version: 1.76.1 (Universal)
  • OS:OS: Darwin arm64 21.6.0

Not sure about this issue happened only in the M1 or not.
不太確定此議題是否與 M1 有關,因為目前在 issue 中沒看過相關議題

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the Mac zh-tw/zh-cn conversion with the Vim extension enabled, then compare the editor behavior with Vim disabled; trace the extension's handling of selection replacement and keyboard input. Done means the selected text is replaced once without leaving the original copy behind.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, typescript, vscode
Domain
desktop, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.