Skip to content

Build your personal knowledge base with Trilium Notes

note paths widget has context menu too

zadam9f1b3cc892bd
diff --git a/src/public/app/services/link.js b/src/public/app/services/link.js
index edae931bcc..64ec62956a 100644
--- a/src/public/app/services/link.js
+++ b/src/public/app/services/link.js
@@ -162,6 +162,7 @@ $(document).on('contextmenu', 'a.ck-link-actions__preview', newTabContextMenu);
$(document).on('contextmenu', '.note-detail-text a', newTabContextMenu);
$(document).on('contextmenu', "a[data-action='note']", newTabContextMenu);
$(document).on('contextmenu', ".note-detail-render a", newTabContextMenu);
+$(document).on('contextmenu', ".note-paths-widget a", newTabContextMenu);
export default {
getNotePathFromUrl,
diff --git a/src/public/app/widgets/note_paths.js b/src/public/app/widgets/note_paths.js
index 73b0695cc3..d7bd85d66f 100644
--- a/src/public/app/widgets/note_paths.js
+++ b/src/public/app/widgets/note_paths.js
@@ -84,6 +84,7 @@ export default class NotePathsWidget extends TabAwareWidget {
this.$currentPath.append(
$("<a>")
.attr('href', '#' + curPath)
+ .attr('data-note-path', curPath)
.addClass('no-tooltip-preview')
.text(await treeService.getNoteTitle(noteId, parentNoteId))
);