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(docs): document search in note functionality
Elian Doranfeb43193b1f5
diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 67e2a5f947..7e724502ce 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -3527,7 +3527,16 @@],"format": "markdown","dataFileName": "Search.md",- "attachments": []+ "attachments": [+ {+ "attachmentId": "WkhcA4FN7sGX",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "Search_image.png"+ }+ ]},{"isClone": false,@@ -3748,6 +3757,71 @@"dataFileName": "Similar Notes_image.png"}]+ },+ {+ "isClone": false,+ "noteId": "McngOG2jbUWX",+ "notePath": [+ "pOsGYCXsbNQG",+ "gh7bpGYxajRS",+ "wArbEsdSae6g",+ "McngOG2jbUWX"+ ],+ "title": "Search in note",+ "notePosition": 110,+ "prefix": null,+ "isExpanded": false,+ "type": "text",+ "mime": "text/html",+ "attributes": [+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-search-alt-2",+ "isInheritable": false,+ "position": 10+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "8YBEPzcpUgxw",+ "isInheritable": false,+ "position": 20+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "6f9hih2hXXZk",+ "isInheritable": false,+ "position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "iPIMuisry3hd",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "MI26XDLSAlCD",+ "isInheritable": false,+ "position": 50+ }+ ],+ "format": "markdown",+ "dataFileName": "Search in note.md",+ "attachments": [+ {+ "attachmentId": "vEq0g2DHEh3O",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "Search in note_image.png"+ }+ ]}]},diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note.mdnew file mode 100644index 0000000000..5acbd01c9b--- /dev/null+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note.md@@ -0,0 +1,29 @@+# Search in note+<figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:898/93;" src="Search in note_image.png" width="898" height="93"></figure>++Local search allows you to search within the currently displayed note.++## Alternatives++* Pressing Ctrl+F while in a browser while not focused in a <a class="reference-link" href="../../Note%20Types/Text.md">Text</a> or a <a class="reference-link" href="../../Note%20Types/Code.md">Code</a> note will trigger the browser's native search. This will also find text that is part of Trilium's UI.+* Pressing Ctrl+F in a <a class="reference-link" href="../../Note%20Types/Text.md">Text</a> note will reveal <a class="reference-link" href="../../Advanced%20Usage/Technologies%20used/CKEditor.md">CKEditor</a>'s search functionality.++## Accessing the search++* On desktop, press<kbd>Ctrl</kbd> + <kbd>F</kbd>+* From the <a class="reference-link" href="../UI%20Elements/Note%20buttons.md">Note buttons</a>, look for the context menu and select _Search in note_.++## Interaction++* Finding:+ * Fill in the _Find in text…_ with the text to search for.+ * The search will be executed automatically in the background.+ * Use up and down arrows of the text box to navigate between results.+* Replacing:+ * Fill in the _Find in text_… field with the text to replace.+ * Fill in the _Replace with…_ field the text to replace it with.+ * Press _Replace_ to replace only the current result.+ * Press _Replace all_ to replace all of them at once.+* Options:+ * _Case sensitive_ – the search will distinguish upper case characters from lower case (e.g. searching for Hello will not match `hello`).+ * _Match words_ - the search will find only exact word matches (e.g. searching for `Java` will not match `JavaScript`).\ No newline at end of filediff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note_image.pngnew file mode 100644index 0000000000..a3aa784ea1Binary files /dev/null and b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note_image.png differdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.md b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.mdindex 945acdfe5d..f434850b08 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.md@@ -1,7 +1,5 @@# Search-## Local Search--Local search allows you to search within the currently displayed note. To initiate a local search, press <kbd>Ctrl</kbd> + <kbd>F</kbd>. If using a web browser, this will be handled by the browser's native search functionality. In the desktop (electron) version, a separate dialog will apear.+<figure class="image"><img style="aspect-ratio:987/725;" src="Search_image.png" width="987" height="725"></figure>## Note Searchdiff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search_image.png b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search_image.pngnew file mode 100644index 0000000000..dc70b2294fBinary files /dev/null and b/docs/User Guide/User Guide/Basic Concepts and Features/Navigation/Search_image.png differdiff --git a/src/public/app/doc_notes/en/User Guide/!!!meta.json b/src/public/app/doc_notes/en/User Guide/!!!meta.jsonindex 9267e65656..5956cd216f 100644--- a/src/public/app/doc_notes/en/User Guide/!!!meta.json+++ b/src/public/app/doc_notes/en/User Guide/!!!meta.json@@ -3527,7 +3527,16 @@],"format": "html","dataFileName": "Search.html",- "attachments": []+ "attachments": [+ {+ "attachmentId": "WkhcA4FN7sGX",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "Search_image.png"+ }+ ]},{"isClone": false,@@ -3748,6 +3757,71 @@"dataFileName": "Similar Notes_image.png"}]+ },+ {+ "isClone": false,+ "noteId": "McngOG2jbUWX",+ "notePath": [+ "pOsGYCXsbNQG",+ "gh7bpGYxajRS",+ "wArbEsdSae6g",+ "McngOG2jbUWX"+ ],+ "title": "Search in note",+ "notePosition": 110,+ "prefix": null,+ "isExpanded": false,+ "type": "text",+ "mime": "text/html",+ "attributes": [+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-search-alt-2",+ "isInheritable": false,+ "position": 10+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "8YBEPzcpUgxw",+ "isInheritable": false,+ "position": 20+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "6f9hih2hXXZk",+ "isInheritable": false,+ "position": 30+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "iPIMuisry3hd",+ "isInheritable": false,+ "position": 40+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "MI26XDLSAlCD",+ "isInheritable": false,+ "position": 50+ }+ ],+ "format": "html",+ "dataFileName": "Search in note.html",+ "attachments": [+ {+ "attachmentId": "vEq0g2DHEh3O",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "Search in note_image.png"+ }+ ]}]},diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note.html b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note.htmlnew file mode 100644index 0000000000..5ad1117bda--- /dev/null+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note.html@@ -0,0 +1,69 @@+<html>++ <head>+ <meta charset="utf-8">+ <meta name="viewport" content="width=device-width, initial-scale=1">+ <link rel="stylesheet" href="../../../style.css">+ <base target="_parent">+ <title data-trilium-title>Search in note</title>+ </head>++ <body>+ <div class="content">+ <h1 data-trilium-h1>Search in note</h1>++ <div class="ck-content">+ <figure class="image image_resized" style="width:100%;">+ <img style="aspect-ratio:898/93;" src="Search in note_image.png" width="898"+ height="93">+ </figure>+ <p>Local search allows you to search within the currently displayed note. </p>+ <h2>Alternatives</h2>+ <ul>+ <li>Pressing Ctrl+F while in a browser while not focused in a <a class="reference-link"+ href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a> or+ a <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_6f9hih2hXXZk">Code</a> note+ will trigger the browser's native search. This will also find text that+ is part of Trilium's UI.</li>+ <li>Pressing Ctrl+F in a <a class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a> note+ will reveal <a class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/1YeN2MzFUluU/_help_MI26XDLSAlCD">CKEditor</a>'s+ search functionality.</li>+ </ul>+ <h2>Accessing the search</h2>+ <ul>+ <li>On desktop, press<kbd>Ctrl</kbd> + <kbd>F</kbd>+ </li>+ <li>From the <a class="reference-link" href="#root/pOsGYCXsbNQG/gh7bpGYxajRS/Vc8PjrjAGuOp/_help_8YBEPzcpUgxw">Note buttons</a>,+ look for the context menu and select <em>Search in note</em>.</li>+ </ul>+ <h2>Interaction</h2>+ <ul>+ <li>Finding:+ <ul>+ <li>Fill in the <em>Find in text…</em> with the text to search for.</li>+ <li>The search will be executed automatically in the background.</li>+ <li>Use up and down arrows of the text box to navigate between results.</li>+ </ul>+ </li>+ <li>Replacing:+ <ul>+ <li>Fill in the <em>Find in text</em>… field with the text to replace.</li>+ <li>Fill in the <em>Replace with…</em> field the text to replace it with.</li>+ <li>Press <em>Replace</em> to replace only the current result.</li>+ <li>Press <em>Replace all</em> to replace all of them at once.</li>+ </ul>+ </li>+ <li>Options:+ <ul>+ <li><em>Case sensitive</em> – the search will distinguish upper case characters+ from lower case (e.g. searching for Hello will not match <code>hello</code>).</li>+ <li><em>Match words</em> - the search will find only exact word matches (e.g.+ searching for <code>Java</code> will not match <code>JavaScript</code>).</li>+ </ul>+ </li>+ </ul>+ </div>+ </div>+ </body>++</html>\ No newline at end of filediff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note_image.pngnew file mode 100644index 0000000000..a3aa784ea1Binary files /dev/null and b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search in note_image.png differdiff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.htmlindex b0cfa115dc..74ff9a57df 100644--- a/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html+++ b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search.html@@ -13,11 +13,10 @@<h1 data-trilium-h1>Search</h1><div class="ck-content">- <h2>Local Search</h2>- <p>Local search allows you to search within the currently displayed note.- To initiate a local search, press <kbd>Ctrl</kbd> + <kbd>F</kbd>. If using- a web browser, this will be handled by the browser's native search functionality.- In the desktop (electron) version, a separate dialog will apear.</p>+ <figure class="image">+ <img style="aspect-ratio:987/725;" src="Search_image.png" width="987"+ height="725">+ </figure><h2>Note Search</h2><p>Note search enables you to find notes by searching for text in the title,content, or <a href="#root/_help_zEY4DaJG4YT5">attributes</a> of the notes.diff --git a/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search_image.png b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search_image.pngnew file mode 100644index 0000000000..dc70b2294fBinary files /dev/null and b/src/public/app/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Navigation/Search_image.png differdiff --git a/src/public/app/doc_notes/en/User Guide/navigation.html b/src/public/app/doc_notes/en/User Guide/navigation.htmlindex 31bb6e3cb4..bec8352490 100644--- a/src/public/app/doc_notes/en/User Guide/navigation.html+++ b/src/public/app/doc_notes/en/User Guide/navigation.html@@ -195,6 +195,9 @@<li><a href="User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Similar%20Notes.html"target="detail">Similar Notes</a></li>+ <li><a href="User%20Guide/Basic%20Concepts%20and%20Features/Navigation/Search%20in%20note.html"+ target="detail">Search in note</a>+ </li></ul></li><li><a href="User%20Guide/Basic%20Concepts%20and%20Features/Keyboard%20Shortcuts.html"