vscode-modaledit icon indicating copy to clipboard operation
vscode-modaledit copied to clipboard

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

Open hihihlo opened this issue 3 years ago • 0 comments

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

hihihlo avatar Sep 19 '21 09:09 hihihlo