obsidian-editor-shortcuts icon indicating copy to clipboard operation
obsidian-editor-shortcuts copied to clipboard

Multiple cursors doesn't work correctly with Japanese

Open misha opened this issue 4 months ago • 1 comments

Overview

Japanese IMEs (and other language IMEs that offer choices) allow you to use the arrow keys to select a replacement input while typing. Unfortunately, it's impossible to use multiple cursor editing with these languages right now because the cursors go away after discovering an initial selection.

I understand this is not high priority, but if there's a simple fix it would greatly improve this plugin for my purposes.

Reproduction

  1. Switch to Japanese IME.
  2. Use Ctrl+D to select multiple occurrences.
  3. Enter some Japanese for which the IME has options.
  4. Use the arrow keys at least twice, ie. select a second option.
  5. Hit enter.

Expected Behavior

I would expect all occurrences to match the final selected option.

Actual Behavior

The first occurrence matches the final option. The other occurrences only match the initial option.

Here's a short clip of the entire bug. As you can see, subsequent choices are not reflected in the other cursor occurrences. (I have added some periods to the first line to avoid having the IME input selection box cover the other items.)

https://github.com/timhor/obsidian-editor-shortcuts/assets/1068949/8a4a1fa7-f819-4048-b908-f8c6e1390bc0

misha avatar Mar 07 '24 02:03 misha