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
docs(user): document inserting an icon into text
Elian Doran5616000673c9
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Icons.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Icons.htmlindex e69de29bb2..0f73b9983c 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Icons.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Icons.html@@ -0,0 +1,45 @@+<p>Icons can be inserted directly into the text of a note, taken from any icon+ pack installed in Trilium. An icon sits in the line like a character: it+ takes the colour and the size of the text around it, and it travels with+ that text when it is copied, exported or shared.</p>+<h2>Inserting an icon</h2>+<ul>+ <li>In the <a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>,+ go to “<strong>Insert</strong>” → “<strong>Insert icon</strong>”.</li>+ <li>Alternatively, type <code>/icon</code> (or <code>/symbol</code>, or <code>/glyph</code>)+ and press <kbd>Enter</kbd>. See <a class="reference-link" href="#root/_help_ZlN4nump6EbW">Slash Commands</a>.</li>+</ul>+<p>Either way, the icon picker opens next to the cursor and shows every icon+ of every installed pack. Search for one by name, or use the selector to+ show a single pack, then click an icon to insert it. On a phone the picker+ opens as a dialog instead, since there is no room beside the cursor for+ it.</p>+<p>To have more icons to choose from, install another pack as described in + <a+ class="reference-link" href="#root/_help_gOKqSJgXLcIj">Icon Packs</a>.</p>+<h2>Changing the colour and the size</h2>+<p>An icon takes the formatting of the text it sits in, so the usual controls+ apply to it:</p>+<ul>+ <li>Select the icon and use the text colour or the text background colour+ control to recolour it.</li>+ <li>Use the font size control to make it larger or smaller. An icon inserted+ into text that is already enlarged arrives enlarged.</li>+</ul>+<h2>Turning and mirroring an icon</h2>+<p>Click an icon to select it, and a small toolbar appears above it. Press+ the “<strong>Transform icon</strong>” button to choose one of:</p>+<ul>+ <li><em>No transform</em>, which is how an icon is inserted.</li>+ <li><em>Rotate 90°</em>, <em>Rotate 180°</em> or <em>Rotate 270°</em>.</li>+ <li><em>Flip horizontally</em> or <em>Flip vertically</em>.</li>+</ul>+<p>Only one of these applies at a time, so choosing another replaces the one+ before it.</p>+<h2>Finding notes by their icons</h2>+<p>An icon is part of a note's searchable text. A note carrying <span class="tn-icon bx bx-star"></span> is+ found by searching for <code>star</code>, the name of the icon, or for <code>bx-star</code>,+ the class it is drawn from.</p>+<p>Icons are also what the note tags of an imported OneNote page become — see + <a+ class="reference-link" href="#root/_help_LpvyEIBIAAj7">Note Tags</a>.</p>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Insert buttons.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Insert buttons.htmlindex e8c75e2c54..5c7fd5b1a5 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Insert buttons.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Insert buttons.html@@ -72,4 +72,6 @@ src="3_Insert buttons_image.png" width="502" height="95"><li>To insert many page breaks at once, insert a page break first, click onit and press <kbd>Ctrl</kbd>+<kbd>C</kbd>. Then use <kbd>Ctrl</kbd>+<kbd>V</kbd>,to paste as many times as needed.</li>-</ul>\ No newline at end of file+</ul>+<h2>Icons</h2>+<p>See the dedicated <a class="reference-link" href="#root/_help_hD8GawVuazff">Icons</a> page.</p>\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text/Icons.md b/docs/User Guide/User Guide/Note Types/Text/Icons.mdindex e69de29bb2..904178577c 100644--- a/docs/User Guide/User Guide/Note Types/Text/Icons.md+++ b/docs/User Guide/User Guide/Note Types/Text/Icons.md@@ -0,0 +1,34 @@+# Icons+Icons can be inserted directly into the text of a note, taken from any icon pack installed in Trilium. An icon sits in the line like a character: it takes the colour and the size of the text around it, and it travels with that text when it is copied, exported or shared.++## Inserting an icon++* In the <a class="reference-link" href="Formatting%20toolbar.md">Formatting toolbar</a>, go to “**Insert**” → “**Insert icon**”.+* Alternatively, type `/icon` (or `/symbol`, or `/glyph`) and press <kbd>Enter</kbd>. See <a class="reference-link" href="Slash%20Commands.md">Slash Commands</a>.++Either way, the icon picker opens next to the cursor and shows every icon of every installed pack. Search for one by name, or use the selector to show a single pack, then click an icon to insert it. On a phone the picker opens as a dialog instead, since there is no room beside the cursor for it.++To have more icons to choose from, install another pack as described in <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Themes/Icon%20Packs.md">Icon Packs</a>.++## Changing the colour and the size++An icon takes the formatting of the text it sits in, so the usual controls apply to it:++* Select the icon and use the text colour or the text background colour control to recolour it.+* Use the font size control to make it larger or smaller. An icon inserted into text that is already enlarged arrives enlarged.++## Turning and mirroring an icon++Click an icon to select it, and a small toolbar appears above it. Press the “**Transform icon**” button to choose one of:++* _No transform_, which is how an icon is inserted.+* _Rotate 90°_, _Rotate 180°_ or _Rotate 270°_.+* _Flip horizontally_ or _Flip vertically_.++Only one of these applies at a time, so choosing another replaces the one before it.++## Finding notes by their icons++An icon is part of a note's searchable text. A note carrying <span class="tn-icon bx bx-star"></span> is found by searching for `star`, the name of the icon, or for `bx-star`, the class it is drawn from.++Icons are also what the note tags of an imported OneNote page become — see <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/Import%20%26%20Export/Importing%20data%20from%20other%20applications/Microsoft%20OneNote/Note%20Tags.md">Note Tags</a>.\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text/Insert buttons.md b/docs/User Guide/User Guide/Note Types/Text/Insert buttons.mdindex 39c18dd787..f7b19f9a7b 100644--- a/docs/User Guide/User Guide/Note Types/Text/Insert buttons.md+++ b/docs/User Guide/User Guide/Note Types/Text/Insert buttons.md@@ -58,4 +58,8 @@ Page breaks provide a way to force the next paragraph or block (table, image, etPage breaks are marked in the editor with the words _Page break_, but they will not actually be shown when printed.* To insert a page break, press the <img src="Insert buttons_image.png" width="20" height="19"> in the formatting toolbar.-* To insert many page breaks at once, insert a page break first, click on it and press <kbd>Ctrl</kbd>+<kbd>C</kbd>. Then use <kbd>Ctrl</kbd>+<kbd>V</kbd>, to paste as many times as needed.\ No newline at end of file+* To insert many page breaks at once, insert a page break first, click on it and press <kbd>Ctrl</kbd>+<kbd>C</kbd>. Then use <kbd>Ctrl</kbd>+<kbd>V</kbd>, to paste as many times as needed.++## Icons++See the dedicated <a class="reference-link" href="Icons.md">Icons</a> page.\ No newline at end of file