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
feat(client): tell the highlights list what it counts as a highlight
Elian Doranb6aa5bfe41b9
diff --git a/apps/client/src/services/in_app_help.ts b/apps/client/src/services/in_app_help.tsindex 407388be49..643fdeeab7 100644--- a/apps/client/src/services/in_app_help.ts+++ b/apps/client/src/services/in_app_help.ts@@ -69,6 +69,12 @@ export const bySidebarSection = {helpPage: "OFXdgB2nNk1F",paragraphs: [ "sidebar_help.attributes_definitions_what", "sidebar_help.attributes_definitions_promoted" ]},+ highlights: {+ // Outline tab, which is where the highlights list is written up — its own page is a redirect+ // to that one.+ helpPage: "2dcGDhp9WFKb",+ paragraphs: [ "sidebar_help.highlights_what", "sidebar_help.highlights_configure" ]+ },noteMap: {// Note Map (Link map, Tree map).helpPage: "BCkXAVs63Ttv",diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex f226cdd2d8..b3d142743c 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -1395,6 +1395,8 @@"attributes_inherited_source": "They are read-only here. Each row names the note it comes from, which is where it can be changed or removed.","attributes_definitions_what": "A definition is the schema behind an attribute name: what kind of value it takes, whether it may be given more than once, and whether it is promoted.","attributes_definitions_promoted": "A promoted attribute is shown on the note itself as a form field rather than being left to this panel. Definitions usually arrive from a template, and each row names the note it lives on.",+ "highlights_what": "The passages this note picks out by their formatting. That is a wider net than it sounds: an ordinary bold or italic sentence counts, not only text you have highlighted.",+ "highlights_configure": "Which formats count is yours to set: bold, italic, underlined, coloured text and text on a background colour can each be listed or left out, from the configure entry in this card's menu. Pressing an entry scrolls the note to it.","note_map_what": "A map of what this note connects to. The link map draws the internal links and relations going in and out of it; the tree map draws where it sits in the note tree. The switcher in this header chooses between the two.","note_map_interaction": "Hovering a note brings its own connections forward and fades the rest. The expand button opens the same map at the size of the window.","note_paths_what": "A note can sit in more than one place in the note tree at once, and each of those places is listed here as a path.",diff --git a/apps/client/src/widgets/sidebar/HighlightsList.tsx b/apps/client/src/widgets/sidebar/HighlightsList.tsxindex 99a7535b52..5fc3489e3c 100644--- a/apps/client/src/widgets/sidebar/HighlightsList.tsx+++ b/apps/client/src/widgets/sidebar/HighlightsList.tsx@@ -9,6 +9,7 @@ import Modal from "../react/Modal";import RawHtml from "../react/RawHtml";import { HighlightsListOptions } from "../type_widgets/options/highlights_list_options";import RightPanelWidget from "./RightPanelWidget";+import SidebarHelp from "./SidebarHelp";interface RawHighlight {id: string;@@ -72,6 +73,7 @@ function AbstractHighlightsList<T extends RawHighlight>({ highlights, scrollToHi<RightPanelWidgetid="highlights"title={t("highlights_list_2.title_with_count", { count: filteredHighlights.length })}+ buttons={<SidebarHelp section="highlights" />}contextMenuItems={[{title: t("highlights_list_2.menu_configure"),