johtela / vscode-modaledit

Configurable Modal Editing in VS Code
https://johtela.github.io/vscode-modaledit/docs/README.html
Other
89 stars 8 forks source link

[bug ?] command "modaledit.cancelSelection" will delete whole line on selection mode #30

Open hihihlo opened 2 years ago

hihihlo commented 2 years ago

assuming has a line text "11 22 33 44" in VSCode, and now selection text is "33" (in selection mode), I have below setting, first pair (clipboardCopyAction + cancelSelection) work fine, second pair (clipboardCutAction + cancelSelection) will delete current line !!?? (after cut "33" into clipboard) "s": { "condition": "selecting", "true": [ "editor.action.clipboardCopyAction", "modaledit.cancelSelection" ], "false": "expandLineSelection" //then auto turn on selection mode }, "x": { "condition": "selecting", "true": [ "editor.action.clipboardCutAction", "modaledit.cancelSelection" //------ below commands has same behavior : //"modaledit.toggleSelection" //"modaledit.enterNormal" ], "false": "deleteRight" },

thanks for any idea