added more careful handling of search note operations, fixes #683

This commit is contained in:
zadam
2019-11-04 22:41:06 +01:00
parent df40accdd4
commit 9c9ef1c7b4
7 changed files with 41 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ class TreeContextMenu {
{ title: "Copy / clone <kbd>Ctrl+C</kbd>", cmd: "copy", uiIcon: "files",
enabled: isNotRoot },
{ title: "Cut <kbd>Ctrl+X</kbd>", cmd: "cut", uiIcon: "scissors",
enabled: isNotRoot },
enabled: isNotRoot && !isHoisted && parentNotSearch },
{ title: "Paste into <kbd>Ctrl+V</kbd>", cmd: "pasteInto", uiIcon: "clipboard",
enabled: !clipboard.isEmpty() && notSearch && noSelectedNotes },
{ title: "Paste after", cmd: "pasteAfter", uiIcon: "clipboard",