mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 04:13:19 +08:00
Add a separator to the editor's context menu running under Electron
This commit is contained in:
parent
8658f9e6d3
commit
128c4d45df
@ -106,6 +106,8 @@ function setupContextMenu() {
|
|||||||
// Replace the placeholder with the real search keyword.
|
// Replace the placeholder with the real search keyword.
|
||||||
let searchUrl = searchEngineUrl.replace("{keyword}", encodeURIComponent(params.selectionText));
|
let searchUrl = searchEngineUrl.replace("{keyword}", encodeURIComponent(params.selectionText));
|
||||||
|
|
||||||
|
items.push({title: "----"});
|
||||||
|
|
||||||
items.push({
|
items.push({
|
||||||
enabled: editFlags.canPaste,
|
enabled: editFlags.canPaste,
|
||||||
title: `Search for "${shortenedSelection}" with ${searchEngineName}`,
|
title: `Search for "${shortenedSelection}" with ${searchEngineName}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user