Skip to content

Build your personal knowledge base with Trilium Notes

Add a separator to the editor's context menu running under Electron

Adorian Doran128c4d45dfe3
diff --git a/src/public/app/menus/electron_context_menu.js b/src/public/app/menus/electron_context_menu.js
index a74691508e..b66930d6be 100644
--- a/src/public/app/menus/electron_context_menu.js
+++ b/src/public/app/menus/electron_context_menu.js
@@ -106,6 +106,8 @@ function setupContextMenu() {
// Replace the placeholder with the real search keyword.
let searchUrl = searchEngineUrl.replace("{keyword}", encodeURIComponent(params.selectionText));
+ items.push({title: "----"});
+
items.push({
enabled: editFlags.canPaste,
title: `Search for "${shortenedSelection}" with ${searchEngineName}`,