Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.jsindex 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}`,