From 0d3c0ea8f7bbba7cb270a3ea5b38c3e4e939e5aa Mon Sep 17 00:00:00 2001 From: Angelo Yana Date: Fri, 22 Nov 2024 21:25:33 +0800 Subject: [PATCH] feat: copy/cut current line on empty selection --- src/lib/editorManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/editorManager.js b/src/lib/editorManager.js index b26db876e..d91c5976a 100644 --- a/src/lib/editorManager.js +++ b/src/lib/editorManager.js @@ -386,6 +386,7 @@ async function EditorManager($header, $body) { editor.setOption("printMarginColumn", settings.printMargin); editor.setOption("enableBasicAutocompletion", true); editor.setOption("enableLiveAutocompletion", settings.liveAutoCompletion); + editor.setOption("copyWithEmptySelection", true); // editor.setOption('enableInlineAutocompletion', settings.inlineAutoCompletion); updateMargin(true);