obsidian-editor-shortcuts
obsidian-editor-shortcuts copied to clipboard
Multiple cursors doesn't work correctly with Japanese
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
- Switch to Japanese IME.
- Use
Ctrl+D
to select multiple occurrences. - Enter some Japanese for which the IME has options.
- Use the arrow keys at least twice, ie. select a second option.
- 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