From f629a6aaf68d824ab1665de46ab3761881fd6d2c Mon Sep 17 00:00:00 2001 From: Angelo Yana <165011990+angeloyana@users.noreply.github.com> Date: Sat, 23 Nov 2024 17:10:08 +0800 Subject: [PATCH] feat: copy/cut current line on empty selection (#1083) --- 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);