Skip to content

Build your personal knowledge base with Trilium Notes

feat(help): display contextual button text snippets

Elian Doran7faaefee20c2
diff --git a/apps/client/src/widgets/floating_buttons/help_button.ts b/apps/client/src/widgets/floating_buttons/help_button.ts
index e09a2454f6..a68cb57112 100644
--- a/apps/client/src/widgets/floating_buttons/help_button.ts
+++ b/apps/client/src/widgets/floating_buttons/help_button.ts
@@ -56,6 +56,8 @@ export default class ContextualHelpButton extends NoteContextAwareWidget {
return byNoteType[note.type];
} else if (note?.hasLabel("calendarRoot")) {
return "l0tKav7yLHGF";
+ } else if (note?.hasLabel("textSnippet")) {
+ return "pwc194wlRzcH";
} else if (note && note.type === "book") {
return byBookType[note.getAttributeValue("label", "viewType") as ViewTypeOptions ?? ""]
}