# Table of Contents - [Overview | Logseq Tips & Tricks](#overview-logseq-tips-tricks) - [Getting Started | Logseq Tips & Tricks](#getting-started-logseq-tips-tricks) - [Tables | Logseq Tips & Tricks](#tables-logseq-tips-tricks) - [Whiteboards | Logseq Tips & Tricks](#whiteboards-logseq-tips-tricks) - [Logseq Sync | Logseq Tips & Tricks](#logseq-sync-logseq-tips-tricks) - [Flashcards / Spaced Repetition | Logseq Tips & Tricks](#flashcards-spaced-repetition-logseq-tips-tricks) - [Zotero | Logseq Tips & Tricks](#zotero-logseq-tips-tricks) - [Advance Queries | Logseq Tips & Tricks](#advance-queries-logseq-tips-tricks) - [Dynamic Variables | Logseq Tips & Tricks](#dynamic-variables-logseq-tips-tricks) - [Macros | Logseq Tips & Tricks](#macros-logseq-tips-tricks) - [Simple Queries Examples | Logseq Tips & Tricks](#simple-queries-examples-logseq-tips-tricks) - [Simple Queries | Logseq Tips & Tricks](#simple-queries-logseq-tips-tricks) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Footnotes | Logseq Tips & Tricks](#footnotes-logseq-tips-tricks) - [Templates | Logseq Tips & Tricks](#templates-logseq-tips-tricks) - [Aliases | Logseq Tips & Tricks](#aliases-logseq-tips-tricks) - [Customise Left Sidebar Menu | Logseq Tips & Tricks](#customise-left-sidebar-menu-logseq-tips-tricks) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [On This Day Query Page | Logseq Tips & Tricks](#on-this-day-query-page-logseq-tips-tricks) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) - [Aliases | Logseq Tips & Tricks](#aliases-logseq-tips-tricks) - [Unknown](#unknown) - [Whiteboards | Logseq Tips & Tricks](#whiteboards-logseq-tips-tricks) - [Unknown](#unknown) - [Simple Queries | Logseq Tips & Tricks](#simple-queries-logseq-tips-tricks) - [Unknown](#unknown) - [Unknown](#unknown) - [Unknown](#unknown) --- # Overview | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/overview.md) . ![](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/~gitbook/image?url=https%3A%2F%2F543559964-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F55IaNCbMPJqTajfUYNlX%252Fuploads%252FiQCrS2CIYTi4CoMsVNzJ%252Fimage.png%3Falt%3Dmedia%26token%3De9399383-aac6-49bf-a15e-a98f682cb3f8&width=768&dpr=3&quality=100&sign=e9c9e030&sv=2) With Logseq's user base growing and several old features being updated or new features being introduced, I feel like the Logseq help documentation could do with a little love. The current [Official Logseq Documentation](https://docs.logseq.com/#/page/contents) is good, but I feel that having it written within Logseq is a little confusing and can sometimes be overwhelming. For this reason, I have taken the great work done by those before me and represented / amended / added to their work in what is hopefully easier to read and more digestible Logseq Tips and Tricks. The purpose of this guide is not (at least for now) to be a getting started step-by-step walkthrough but more as a place for you to find snippets of information on particular feature / tips and tricks. This is a work in process and will be updated as and when possible. The current flow of the Unofficial Logseq Documentation is: 1. Very brief [Getting Started](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started) guide 2. [Beginner to Intermediate](https://app.gitbook.com/o/kne1yGuUlhT5Vbgrzh7V/s/55IaNCbMPJqTajfUYNlX/~/changes/AzQm99u6FidyxWZt4I3k/beginner-to-advance-features) Features 3. [Intermediate to Advance](https://app.gitbook.com/o/kne1yGuUlhT5Vbgrzh7V/s/55IaNCbMPJqTajfUYNlX/~/changes/AzQm99u6FidyxWZt4I3k/intermediate-to-advance-features) Features 4. [Queries](https://app.gitbook.com/o/kne1yGuUlhT5Vbgrzh7V/s/55IaNCbMPJqTajfUYNlX/~/changes/AzQm99u6FidyxWZt4I3k/queries) I am not wedded to the above, it was simply a means to getting some content on the page. If you have any suggestions or would like to contribute, please feel more than welcome to do so (I will try to work out how this is done and include instructions). [NextGetting Started](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started) Last updated 3 years ago --- # Getting Started | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started.md) . In Logseq, a collection of notes is called a **graph**. Think of a graph as a directory location in Windows Explorer / Finder, a safety deposit vault, it simply is a name given for a collection of items. ### To get started:[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started#to-get-started) 1. Download [Logseq](https://logseq.com/) on your desktop. 2. Fire it up and you will get a message about selecting a local directory. 3. Follow the on-screen instructions. You can select the location where you want to store your Logseq Graph. Some users have it on their local machine (in My Documents, for example), while others store them on a cloud-sharing service like Google Drive, OneDrive, or DropBox, which has the advantage of giving you access to your notes on different computers. Let your heart guide you to its desired location. 4. You are good to go and can start typing out your thoughts, feelings and notes, or anything else that takes your fancy. #### Importing Markdown Files[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started#importing-markdown-files) With the new Logseq Graph set-up, should you wish to import previous markdown (.md) files, you can do so simply by opening Windows Explorer / Finder, navigating to the Logseq Graph Directory and copying and pasting your files to the `pages` directory. Open Logseq, refresh (top left-hand corner) and voila. This very brief guide has hopefully given you sufficient assistance in getting started. There is not much to getting started with Logseq in reality. Open up, write notes and start to scratch the surface to uncover amazing features. [PreviousOverview](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs) [NextAliases](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases) Last updated 3 years ago --- # Tables | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/tables.md) . You can use tables to show structured information within Logseq. To add a table, simply insert the text with each row (ctrl + enter) on its own line within the same block and each column separated by a vertical line (`|`). The following text: Copy |Column A|Column B|Column C| |Text|More text|And even more| |Text|More text|And even more| Renders the below table in Logseq. Column A Column B Column C Text More text And even more Text More text And even more Be sure to also check out [https://www.tablesgenerator.com/markdown\_tables](https://www.tablesgenerator.com/markdown_tables) for your tabular data. The site will auto-generate the correct table syntax that you can copy and paste into Logseq. [PreviousCustomise Left Sidebar Menu](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/customise-left-sidebar-menu) [NextOn This Day Query Page](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/on-this-day-query-page) Last updated 3 years ago --- # Whiteboards | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/whiteboards.md) . Coming soon [PreviousOn This Day Query Page](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/on-this-day-query-page) [NextLogseq Sync](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/logseq-sync) Last updated 3 years ago --- # Logseq Sync | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/logseq-sync.md) . Ramses has already written a great guide on setting up and using Logseq Sync, so rather than copy / paste or reinvent the wheel, please follow this [link](https://blog.logseq.com/how-to-setup-and-use-logseq-sync/) for the guide. [PreviousWhiteboards](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/whiteboards) [NextDynamic Variables](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/dynamic-variables) Last updated 3 years ago --- # Flashcards / Spaced Repetition | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition.md) . > Spaced repetition (SRS) is an evidence-based learning technique that is usually performed with flashcards. It is based on learning over a longer period time with distributed sessions. Newly introduced and more difficult flashcards are shown more frequently, while older and less difficult flashcards are shown less frequently in order to exploit the psychological _spacing effect_.1 The use of spaced repetition has been proven to increase rate of learning. [Wikipedia](https://en.wikipedia.org/wiki/Spaced_repetition) In Logseq, we can make use of Spaced Repetition by adding the `#card` or `[[card]]` syntax. We create cards and clozes quite easily. ### How to create a card?[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition#how-to-create-a-card) There're two ways to create a card. 1. You can add either `#card` or `[[card]]` to any block to make it a card. 2. You can right-click the bullet and select "Make a card", which will add `#card` to the end of the current block. 3. Write the answer / back of the card in the child block As an example, you should have something like * Capital of Spain #card * Madrid The above will show on the front of the card `Capital of Spain` and show `Madrid` when you click show answer. ### How to create a cloze?[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition#how-to-create-a-cloze) The content in a cloze is not shown by default. For example, \[...\], you can click it to reveal its content. You can have multiple \[...\] in a block too. 1. Type a sentence like `My birthday is` 2. Type /cloze, which will activate the cloze feature. Input text such as `1 January` in the defined area 3. The input should look something like `My birthday is {{cloze 1 January}}` 4. Click away and you will be left with \`My birthday is \[...\] ### MORE COMING SOON[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition#more-coming-soon) [PreviousMacros](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/macros) [NextZotero](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/zotero) Last updated 3 years ago --- # Zotero | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/zotero.md) . Coming Soon [PreviousFlashcards / Spaced Repetition](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition) [NextSimple Queries](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries) Last updated 3 years ago --- # Advance Queries | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/advance-queries.md) . Content coming soon - Bear with me on this one, as I am not even sure where to start. [PreviousSimple Queries Examples](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries-examples) Last updated 3 years ago --- # Dynamic Variables | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/dynamic-variables.md) . Within [Templates](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates) , and [Queries](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries) it is possible to use Dynamic Variables. Dynamic Variables are syntax that allows you to replace a placeholder with, say, today's date. To use it, you need to use:`<% sample text %>.` Replace the sample text with the following: * `today` => \[\[Today's journal page\]\] * `yesterday` => \[\[Yesterday's journal page\]\] * `tomorrow` => \[\[Tomorrow's journal page\]\] * `time` => Current time, e.g. 22:44 * `Last Friday` => \[\[last Friday's date\]\] * `current page` => \[\[Current page\]\] [PreviousLogseq Sync](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/logseq-sync) [NextMacros](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/macros) Last updated 3 years ago --- # Macros | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/macros.md) . Macros, sometimes referred to as snippets, allow you to quickly insert text when you type certain words. You can think of Macros like an in-built text expander. Type a keyword and pre-defined text is returned. ### How to use Macros[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/macros#how-to-use-macros) It is important to note that there is no UI for Macros, they are instead defined in config.edn under the `:macros` key. 1. Open your `config.edn` file (search or via settings), and find the `macros:` section. 2. Type the macro name as the first word wrapped in curly braces e.g. the `foo` macro is typed as `{{foo}}` 3. Macros can have arguments configured with dollar variables. For example, the `hello` macro defined as `"Hello $1 and $2!"` has two arguments and is invoked with comma-delimited arguments like `{{hello foo, bar}}`. This results in `Hello foo and bar!` A few examples are included below: Define a macro that inserts text at a specific locationCLOJURE1 Copy :macros { "compare" "This is better than $1 and $2." } Define a macro to insert today's date (via a \[\[Dynamic Variable\]\])CLOJURE1 Copy :macros { "today" "Today is **<% today %>**" } [PreviousDynamic Variables](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/dynamic-variables) [NextFlashcards / Spaced Repetition](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition) Last updated 3 years ago --- # Simple Queries Examples | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries-examples.md) . [PreviousSimple Queries](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries) [NextAdvance Queries](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/advance-queries) Last updated 3 years ago --- # Simple Queries | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries.md) . **Queries** are used to ask Logseq to output a certain set of information from the data you have previously inputted. You can think of it as a filter of your content. **COMING SOON** [PreviousZotero](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/zotero) [NextSimple Queries Examples](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries-examples) Last updated 3 years ago --- # Unknown \# Logseq Tips & Tricks ## Logseq Tips & Tricks - \[Overview\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/overview.md) - \[Getting Started\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started.md) - \[Aliases\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases.md) - \[Footnotes\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes.md) - \[Templates\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates.md) - \[Customise Left Sidebar Menu\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/customise-left-sidebar-menu.md) - \[Tables\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/tables.md) - \[On This Day Query Page\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/on-this-day-query-page.md) - \[Whiteboards\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/whiteboards.md) - \[Logseq Sync\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/logseq-sync.md) - \[Dynamic Variables\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/dynamic-variables.md) - \[Macros\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/macros.md) - \[Flashcards / Spaced Repetition\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition.md) - \[Zotero\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/zotero.md) - \[Simple Queries\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries.md) - \[Simple Queries Examples\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries-examples.md) - \[Advance Queries\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/advance-queries.md) --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/overview.md). # Overview
With Logseq's user base growing and several old features being updated or new features being introduced, I feel like the Logseq help documentation could do with a little love. The current \[Official Logseq Documentation\](https://docs.logseq.com/#/page/contents) is good, but I feel that having it written within Logseq is a little confusing and can sometimes be overwhelming. For this reason, I have taken the great work done by those before me and represented / amended / added to their work in what is hopefully easier to read and more digestible Logseq Tips and Tricks. The purpose of this guide is not (at least for now) to be a getting started step-by-step walkthrough but more as a place for you to find snippets of information on particular feature / tips and tricks. This is a work in process and will be updated as and when possible. The current flow of the Unofficial Logseq Documentation is: 1. Very brief \[Getting Started\](/unofficial-logseq-docs/general/getting-started.md) guide 2. \[Beginner to Intermediate\](https://app.gitbook.com/o/kne1yGuUlhT5Vbgrzh7V/s/55IaNCbMPJqTajfUYNlX/~/changes/AzQm99u6FidyxWZt4I3k/beginner-to-advance-features) Features 3. \[Intermediate to Advance\](https://app.gitbook.com/o/kne1yGuUlhT5Vbgrzh7V/s/55IaNCbMPJqTajfUYNlX/~/changes/AzQm99u6FidyxWZt4I3k/intermediate-to-advance-features) Features 4. \[Queries\](https://app.gitbook.com/o/kne1yGuUlhT5Vbgrzh7V/s/55IaNCbMPJqTajfUYNlX/~/changes/AzQm99u6FidyxWZt4I3k/queries) I am not wedded to the above, it was simply a means to getting some content on the page. If you have any suggestions or would like to contribute, please feel more than welcome to do so (I will try to work out how this is done and include instructions). --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started.md). # Getting Started In Logseq, a collection of notes is called a \*\*graph\*\*. Think of a graph as a directory location in Windows Explorer / Finder, a safety deposit vault, it simply is a name given for a collection of items. ### To get started: 1. Download \[Logseq\](https://logseq.com/) on your desktop. 2. Fire it up and you will get a message about selecting a local directory. 3. Follow the on-screen instructions. You can select the location where you want to store your Logseq Graph. Some users have it on their local machine (in My Documents, for example), while others store them on a cloud-sharing service like Google Drive, OneDrive, or DropBox, which has the advantage of giving you access to your notes on different computers. Let your heart guide you to its desired location. 4. You are good to go and can start typing out your thoughts, feelings and notes, or anything else that takes your fancy. #### Importing Markdown Files With the new Logseq Graph set-up, should you wish to import previous markdown (.md) files, you can do so simply by opening Windows Explorer / Finder, navigating to the Logseq Graph Directory and copying and pasting your files to the \`pages\` directory. Open Logseq, refresh (top left-hand corner) and voila. This very brief guide has hopefully given you sufficient assistance in getting started. There is not much to getting started with Logseq in reality. Open up, write notes and start to scratch the surface to uncover amazing features. --- # Footnotes | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes.md) . You can add additional information to your text by using **Footnotes**. The footnote text may appear appear * on the same block as the footnote (could be on a new line) * in a block below on the same level (_sibling_) * in a block below indented further (_child_) * in an unrelated block ### How to Use Footnotes[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes#how-to-use-footnotes) To use footnotes, you add the footnote indicator (`[^1]`) at the end of your text. Further down the page, you add the footnote text for the marker (in this case, marker #1). For example: * `This is a line of text notice how I add the footnote marker at the end [^1]. Ok great and now?` Where you want the footnote to appear, add: * `[^1]: This is the footnote to the text above` Clicking on superscript 1 in the original text will navigate to the footnote. Clicking on the footnote will navigate back to the source text. [PreviousAliases](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases) [NextTemplates](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates) Last updated 3 years ago --- # Templates | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates.md) . In Logseq, you can easily create templates for the purpose of reusing content. For example, you may have a set layout for meeting notes, and a template can save you the hassle of rewiring content each time. ### Creating a Template:[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates#creating-a-template) 1. Create a page called `Templates.` * I find creating a dedicated template page helps so that all your templates are on the same page. This is not a requirement, as can create a template from just about anywhere in Logseq. 2. Fill out the content you want to be included in your template. 3. Right-click the block bullet and choose `Make Template` 4. Enter a template name and click `Submit.` You have the option of including the parent block when inserting the template or not - this is a personal preference choice. ### Renaming a Template:[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates#renaming-a-template) To rename a template, edit the block property `template: template_name` ### Editing an Existing Template:[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates#editing-an-existing-template) To edit a template, locate the template you want to change (having all templates on a page can be useful for this instead of hunting for templates created on numerous pages), and click the parent and/or child blocks to enter editing mode, make any needed changes Be aware that the changes implemented will not propagate to existing templates (i.e. the previously used templates will not automatically be updated for the amendments made). ### Using / Inserting a Template:[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates#using-inserting-a-template) To insert a template, type `/` and select `Template.` Select your desired template from the list and press enter to insert it. [PreviousFootnotes](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes) [NextCustomise Left Sidebar Menu](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/customise-left-sidebar-menu) Last updated 3 years ago --- # Aliases | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases.md) . An **Alias** indicates an additional / alternative name for a note. Aliases are great when referring to acronyms, nicknames, notes in a different language, or even people. When you search or reference Franch / Francais, AI / Artificial Intelligence, PKM / Personal Knowledge Management, or Al Capone / Scarface, Aliases help you through the ability to use multiple terms to reference the same underlying note. ### How to Create an Alias[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases#how-to-create-an-alias) 1. Create a new page and call it `Artificial Intelligence`. 2. In the **first block** of this page**,** type `alias:: AI` 3. Navigate to a different page and create the AI link `[[AI]]` 4. Clicking \[\[AI\]\] will navigate you to the `Artificial Intelligence` page. You can add multiple aliases by changing Step 2 to the following: `alias:: AI, Aliens Are Here, Chat-GPT`. When you reference each term, it will link to the original Artificial Intelligence page. ### Alias Negatives[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases#alias-negatives) The main negative of using aliases is overlapping. For example, we use AI as an alias for Artificial Intelligence. However, AI could also stand for many other terms, such as Adobe Illustrator, Amnesty International or Air India etc. You need to be careful when setting aliases up to ensure it does not cause issues down the line as your knowledge base grows. [PreviousGetting Started](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started) [NextFootnotes](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes) Last updated 3 years ago --- # Customise Left Sidebar Menu | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/customise-left-sidebar-menu.md) . A question that often arises is how to remove certain menu items from the left-hand sidebar. Whilst there is no on / off toggle available in Logseq, you can hide unwanted options with CSS. You can add the following to your custom.css to hide the option in the sidebar by 1. Open your custom.css file (search custom.css and open) 2. Add the following line `.change-text { display: none; }` 3. Change `change-text` with any of the following: * `journals-nav` to remove the Journal option * `flashcards-nav` to remove the Flashcards option * `graph-view-nav` to remove the Graph View option * `all-pages-nav` to remove the All Pages option [PreviousTemplates](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates) [NextTables](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/tables) Last updated 3 years ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/tables.md). # Tables You can use tables to show structured information within Logseq. To add a table, simply insert the text with each row (ctrl + enter) on its own line within the same block and each column separated by a vertical line (\`|\`). The following text: \`\`\` |Column A|Column B|Column C| |Text|More text|And even more| |Text|More text|And even more| \`\`\` Renders the below table in Logseq. | Column A | Column B | Column C | | -------- | --------- | ------------- | | Text | More text | And even more | | Text | More text | And even more | Be sure to also check out for your tabular data. The site will auto-generate the correct table syntax that you can copy and paste into Logseq. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/whiteboards.md). # Whiteboards Coming soon --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/logseq-sync.md). # Logseq Sync Ramses has already written a great guide on setting up and using Logseq Sync, so rather than copy / paste or reinvent the wheel, please follow this \[link\](https://blog.logseq.com/how-to-setup-and-use-logseq-sync/) for the guide. --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/flashcards-spaced-repetition.md). # Flashcards / Spaced Repetition > Spaced repetition (SRS) is an evidence-based learning technique that is usually performed with flashcards. It is based on learning over a longer period time with distributed sessions. Newly introduced and more difficult flashcards are shown more frequently, while older and less difficult flashcards are shown less frequently in order to exploit the psychological \*spacing effect\*.1 The use of spaced repetition has been proven to increase rate of learning. \[Wikipedia\](https://en.wikipedia.org/wiki/Spaced\_repetition) In Logseq, we can make use of Spaced Repetition by adding the \`#card\` or \`\[\[card\]\]\` syntax. We create cards and clozes quite easily. ### How to create a card? There're two ways to create a card. 1. You can add either \`#card\` or \`\[\[card\]\]\` to any block to make it a card. 2. You can right-click the bullet and select "Make a card", which will add \`#card\` to the end of the current block. 3. Write the answer / back of the card in the child block As an example, you should have something like \* Capital of Spain #card \* Madrid The above will show on the front of the card \`Capital of Spain\` and show \`Madrid\` when you click show answer. ### How to create a cloze? The content in a cloze is not shown by default. For example, \\\[...\], you can click it to reveal its content. You can have multiple \\\[...\] in a block too. 1. Type a sentence like \`My birthday is\` 2. Type /cloze, which will activate the cloze feature. Input text such as \`1 January\` in the defined area 3. The input should look something like \`My birthday is {{cloze 1 January}}\` 4. Click away and you will be left with \\\`My birthday is \\\[...\] ### MORE COMING SOON
--- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/zotero.md). # Zotero Coming Soon --- # On This Day Query Page | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/on-this-day-query-page.md) . Over the past 7 years or so I have used [journey](https://journey.cloud/) as my go-to journal app. Easy to use, on the phone and the computer, can upload images, etc. but then in 2020 (for me a least), PKM apps burst onto the scene. I soon found myself exclusively using Logseq as my journalling app. The ease of being able to write in it (I mostly use my laptop as opposed to my phone), there is no lock-in format and my journals forming part of my notes were all too good to pass on. However, I found that one thing I missed was the "On This Day" / "Today" pop-up that allowed me to see historical journal entries made on this day 1, 2, 3 etc. years ago. I think this is a feature any journalling app should have by default as it allows you to see what was happening in the past and the journey you are on. After some digging around, I have found a way of being able to reproduce the "On This Day" feature in Logseq. I am even happier to say that all it takes is a query, a few clicks here and there and you are good to go. First off, let's create a page called "On This Day" - or a name of your choice. **The Query** The query that is needed to recall pages made on this day in the past years is a bit complex, and I will not pretend to understand it. All I can say is thank you to cc1 for creating this and posting it online. Copy #+BEGIN_QUERY {:title "⌛ On this day..." :query [:find (pull ?b [*])\ :in $ ?today\ :where\ [?b :block/page ?p]\ [?p :page/journal? true]\ [?p :page/journal-day ?jd] \ [(str ?jd) ?jds] \ [(subs ?jds 4 8) ?md1]\ [(str ?today) ?td]\ [(subs ?td 4 8) ?md2]\ [(= ?md1 ?md2)]\ [(< ?jd ?today)]\ ] :inputs [:today] :breadcrumb-show? true :collapsed? false} #+END_QUERY You can tweak a few of the settings to your liking and preference. For example, having `:collapsed? True` will result in the query being collapsed by default. UPDATE: [Bas / Tools on Tech](https://twitter.com/ToolsonTech) commented on the query and what each step means. Check it out at the end of the article. Basically, it gets the journal day and turns it into a string that's YYYYMMDD and then removes the first 4 characters to get MMDD to compare with MMDD of today. With the above query, you can now retrieve your notes from the previous years and should see something like the screenshot below. ![](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/~gitbook/image?url=https%3A%2F%2Fwww.logseqtimes.com%2Fcontent%2Fimages%2F2023%2F01%2Fimage-11-3.png&width=768&dpr=3&quality=100&sign=25fe7413&sv=2) _Or with a bit of spice and a custom theme / plugin_. ![](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/~gitbook/image?url=https%3A%2F%2Fwww.logseqtimes.com%2Fcontent%2Fimages%2F2023%2F01%2Fimage-11.png&width=768&dpr=3&quality=100&sign=ec6a181b&sv=2) Whilst Logseq (and other apps) are great for linking to different pages and retrieving information, how often do you really go back and look at your full journal pages? The beauty of this query is that you can discover things you may not have otherwise, like why last year was quite an eventful day. **The Few Clicks Here and There** With the On This Day (or whatever you called it) page set up, we can now navigate to it and right-click the title. Click "Add to Favourites" to see a new link under your favourites on the left-hand side. Drag and drop the link into your preferred position, I like mine on the top of my favourites so that I see it first. You should see something along the lines of the following: ![](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/~gitbook/image?url=https%3A%2F%2Fwww.logseqtimes.com%2Fcontent%2Fimages%2F2023%2F01%2Fimage-12.png&width=768&dpr=3&quality=100&sign=fb03ffa0&sv=2) All you now need to do, is each day, click the first link and either laugh or be worried about what was going on in your life in the past. **Other Tweaks** The query as currently set up sits outside the journals page and always defaults to today's page as opposed to the journal page (for example if I put the query on 25 January 2023 - I will still get back today's results). I do not see this as a shortcoming but more of a bonus. When writing and taking notes, I do not want to be distracted by what I was doing last year (yes I could collapse the query, but less is more. Also, I do not want to be overwhelmed by too much information about all of my historical journals on every journal page I navigate to. In essence, whilst tweaks are possible, I will be starting easy. I just want to see what I did in the past on this day. If I missed yesterday's, then tough luck for me. A quick video of how to get this set up has been included below: **Breakdown of the Query** Thank you to [Bas / Tools on Tech](https://twitter.com/ToolsonTech) for adding [commentary](https://pastebin.com/Hagdw2JJ) to the query and how it works. Much appreciated. Copy #+BEGIN_QUERY { ; Set Title :title "⌛ On this day..." ; Get all blocks :query [:find (pull ?b [*])\ ; We want to filter on Today, so we get that variable as input (See input)\ :in $ ?today\ :where\ ; Now to filter, first, we only want journal pages\ [?b :block/page ?p]\ [?p :page/journal? true]\ ; Then we fetch the Day of the Journal page, store it in ?jd\ [?p :page/journal-day ?jd] \ ; Tricky part, but what happens it turns date into string\ ; Not sure, but I assume unix timeformat so YYYYMMDD\ ; Then use subs to cutoff the YYYY \ [(str ?jd) ?jds] \ [(subs ?jds 4 8) ?md1]\ ; Then we do the same trick for today\ [(str ?today) ?td]\ [(subs ?td 4 8) ?md2]\ ; What we are left with is a compare of Today without year, matches pages\ ; without year \ [(= ?md1 ?md2)]\ ; Finally filter out today, as that's not history....yet\ [(< ?jd ?today)]\ ] ; Make Logseq provide todays date :inputs [:today] ; Why yes we want to see the year :breadcrumb-show? true ; And show me everything unfolded :collapsed? False } #+END_QUERY Hope you find this useful and thanks for reading / watching. [PreviousTables](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/tables) [NextWhiteboards](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/whiteboards) Last updated 3 years ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/dynamic-variables.md). # Dynamic Variables Within \[Templates\](/unofficial-logseq-docs/beginner-to-advance-features/templates.md), and \[Queries\](/unofficial-logseq-docs/queries/simple-queries.md)it is possible to use Dynamic Variables. Dynamic Variables are syntax that allows you to replace a placeholder with, say, today's date. To use it, you need to use:\`<% sample text %>.\` Replace the sample text with the following: \* \`today\` => \\\[\\\[Today's journal page\]\] \* \`yesterday\` => \\\[\\\[Yesterday's journal page\]\] \* \`tomorrow\` => \\\[\\\[Tomorrow's journal page\]\] \* \`time\` => Current time, e.g. 22:44 \* \`Last Friday\` => \\\[\\\[last Friday's date\]\] \* \`current page\` => \\\[\\\[Current page\]\] --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries.md). # Simple Queries \*\*Queries\*\* are used to ask Logseq to output a certain set of information from the data you have previously inputted. You can think of it as a filter of your content. \*\*COMING SOON\*\* --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries-examples.md). # Simple Queries Examples --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/macros.md). # Macros Macros, sometimes referred to as snippets, allow you to quickly insert text when you type certain words. You can think of Macros like an in-built text expander. Type a keyword and pre-defined text is returned. ### How to use Macros It is important to note that there is no UI for Macros, they are instead defined in config.edn under the \`:macros\` key. 1. Open your \`config.edn\` file (search or via settings), and find the \`macros:\` section. 2. Type the macro name as the first word wrapped in curly braces e.g. the \`foo\` macro is typed as \`{{foo}}\` 3. Macros can have arguments configured with dollar variables. For example, the \`hello\` macro defined as \`"Hello $1 and $2!"\` has two arguments and is invoked with comma-delimited arguments like \`{{hello foo, bar}}\`. This results in \`Hello foo and bar!\` A few examples are included below: Define a macro that inserts text at a specific locationCLOJURE1 \`\`\` :macros { "compare" "This is better than $1 and $2." } \`\`\` Define a macro to insert today's date (via a \\\[\\\[Dynamic Variable\]\])CLOJURE1 \`\`\` :macros { "today" "Today is \*\*<% today %>\*\*" } \`\`\` --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/advance-queries.md). # Advance Queries Content coming soon - Bear with me on this one, as I am not even sure where to start. --- # Aliases | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases.md) . An **Alias** indicates an additional / alternative name for a note. Aliases are great when referring to acronyms, nicknames, notes in a different language, or even people. When you search or reference Franch / Francais, AI / Artificial Intelligence, PKM / Personal Knowledge Management, or Al Capone / Scarface, Aliases help you through the ability to use multiple terms to reference the same underlying note. ### How to Create an Alias[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features#how-to-create-an-alias) 1. Create a new page and call it `Artificial Intelligence`. 2. In the **first block** of this page**,** type `alias:: AI` 3. Navigate to a different page and create the AI link `[[AI]]` 4. Clicking \[\[AI\]\] will navigate you to the `Artificial Intelligence` page. You can add multiple aliases by changing Step 2 to the following: `alias:: AI, Aliens Are Here, Chat-GPT`. When you reference each term, it will link to the original Artificial Intelligence page. ### Alias Negatives[](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features#alias-negatives) The main negative of using aliases is overlapping. For example, we use AI as an alias for Artificial Intelligence. However, AI could also stand for many other terms, such as Adobe Illustrator, Amnesty International or Air India etc. You need to be careful when setting aliases up to ensure it does not cause issues down the line as your knowledge base grows. [PreviousGetting Started](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/general/getting-started) [NextFootnotes](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes) Last updated 3 years ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/footnotes.md). # Footnotes You can add additional information to your text by using \*\*Footnotes\*\*. The footnote text may appear appear \* on the same block as the footnote (could be on a new line) \* in a block below on the same level (\*sibling\*) \* in a block below indented further (\*child\*) \* in an unrelated block ### How to Use Footnotes To use footnotes, you add the footnote indicator (\`\[^1\]\`) at the end of your text. Further down the page, you add the footnote text for the marker (in this case, marker #1). For example: \* \`This is a line of text notice how I add the footnote marker at the end \[^1\]. Ok great and now?\` Where you want the footnote to appear, add: \* \`\[^1\]: This is the footnote to the text above\` Clicking on superscript 1 in the original text will navigate to the footnote. Clicking on the footnote will navigate back to the source text. {% embed url="" %} --- # Whiteboards | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/whiteboards.md) . Coming soon [PreviousOn This Day Query Page](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/on-this-day-query-page) [NextLogseq Sync](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/logseq-sync) Last updated 3 years ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates.md). # Templates In Logseq, you can easily create templates for the purpose of reusing content. For example, you may have a set layout for meeting notes, and a template can save you the hassle of rewiring content each time. ### Creating a Template: 1. Create a page called \`Templates.\` \* I find creating a dedicated template page helps so that all your templates are on the same page. This is not a requirement, as can create a template from just about anywhere in Logseq. 2. Fill out the content you want to be included in your template. 3. Right-click the block bullet and choose \`Make Template\` 4. Enter a template name and click \`Submit.\` You have the option of including the parent block when inserting the template or not - this is a personal preference choice. ### Renaming a Template: To rename a template, edit the block property \`template: template\_name\` ### Editing an Existing Template: To edit a template, locate the template you want to change (having all templates on a page can be useful for this instead of hunting for templates created on numerous pages), and click the parent and/or child blocks to enter editing mode, make any needed changes Be aware that the changes implemented will not propagate to existing templates (i.e. the previously used templates will not automatically be updated for the amendments made). ### Using / Inserting a Template: To insert a template, type \`/\` and select \`Template.\` Select your desired template from the list and press enter to insert it. {% embed url="" %} --- # Simple Queries | Logseq Tips & Tricks For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt) . This page is also available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries.md) . **Queries** are used to ask Logseq to output a certain set of information from the data you have previously inputted. You can think of it as a filter of your content. **COMING SOON** [PreviousZotero](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/zotero) [NextSimple Queries Examples](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries/simple-queries-examples) Last updated 3 years ago --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/aliases.md). # Aliases An \*\*Alias\*\* indicates an additional / alternative name for a note. Aliases are great when referring to acronyms, nicknames, notes in a different language, or even people. When you search or reference Franch / Francais, AI / Artificial Intelligence, PKM / Personal Knowledge Management, or Al Capone / Scarface, Aliases help you through the ability to use multiple terms to reference the same underlying note. ### How to Create an Alias 1. Create a new page and call it \`Artificial Intelligence\`. 2. In the \*\*first block\*\* of this page\*\*,\*\* type \`alias:: AI\` 3. Navigate to a different page and create the AI link \`\[\[AI\]\]\` 4. Clicking \\\[\\\[AI\]\] will navigate you to the \`Artificial Intelligence\` page. You can add multiple aliases by changing Step 2 to the following: \`alias:: AI, Aliens Are Here, Chat-GPT\`. When you reference each term, it will link to the original Artificial Intelligence page. ### Alias Negatives The main negative of using aliases is overlapping. For example, we use AI as an alias for Artificial Intelligence. However, AI could also stand for many other terms, such as Adobe Illustrator, Amnesty International or Air India etc. You need to be careful when setting aliases up to ensure it does not cause issues down the line as your knowledge base grows. {% embed url="" %} --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/customise-left-sidebar-menu.md). # Customise Left Sidebar Menu A question that often arises is how to remove certain menu items from the left-hand sidebar. Whilst there is no on / off toggle available in Logseq, you can hide unwanted options with CSS. You can add the following to your custom.css to hide the option in the sidebar by 1. Open your custom.css file (search custom.css and open) 2. Add the following line \`.change-text { display: none; }\` 3. Change \`change-text\` with any of the following: \* \`journals-nav\` to remove the Journal option \* \`flashcards-nav\` to remove the Flashcards option \* \`graph-view-nav\` to remove the Graph View option \* \`all-pages-nav\` to remove the All Pages option {% embed url="" %} --- # Unknown \> For the complete documentation index, see \[llms.txt\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending \`.md\` to page URLs; this page is available as \[Markdown\](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/on-this-day-query-page.md). # On This Day Query Page Over the past 7 years or so I have used \[journey\](https://journey.cloud/) as my go-to journal app. Easy to use, on the phone and the computer, can upload images, etc. but then in 2020 (for me a least), PKM apps burst onto the scene. I soon found myself exclusively using Logseq as my journalling app. The ease of being able to write in it (I mostly use my laptop as opposed to my phone), there is no lock-in format and my journals forming part of my notes were all too good to pass on. However, I found that one thing I missed was the "On This Day" / "Today" pop-up that allowed me to see historical journal entries made on this day 1, 2, 3 etc. years ago. I think this is a feature any journalling app should have by default as it allows you to see what was happening in the past and the journey you are on. After some digging around, I have found a way of being able to reproduce the "On This Day" feature in Logseq. I am even happier to say that all it takes is a query, a few clicks here and there and you are good to go. First off, let's create a page called "On This Day" - or a name of your choice. \*\*The Query\*\* The query that is needed to recall pages made on this day in the past years is a bit complex, and I will not pretend to understand it. All I can say is thank you to cc1 for creating this and posting it online. \`\`\`markdown #+BEGIN\_QUERY {:title "⌛ On this day..." :query \[:find (pull ?b \[\*\])\ :in $ ?today\ :where\ \[?b :block/page ?p\]\ \[?p :page/journal? true\]\ \[?p :page/journal-day ?jd\] \ \[(str ?jd) ?jds\] \ \[(subs ?jds 4 8) ?md1\]\ \[(str ?today) ?td\]\ \[(subs ?td 4 8) ?md2\]\ \[(= ?md1 ?md2)\]\ \[(< ?jd ?today)\]\ \] :inputs \[:today\] :breadcrumb-show? true :collapsed? false} #+END\_QUERY \`\`\` You can tweak a few of the settings to your liking and preference. For example, having \`:collapsed? True\` will result in the query being collapsed by default. UPDATE: \[Bas / Tools on Tech\](https://twitter.com/ToolsonTech) commented on the query and what each step means. Check it out at the end of the article. Basically, it gets the journal day and turns it into a string that's YYYYMMDD and then removes the first 4 characters to get MMDD to compare with MMDD of today. With the above query, you can now retrieve your notes from the previous years and should see something like the screenshot below.
\*Or with a bit of spice and a custom theme / plugin\*.
Whilst Logseq (and other apps) are great for linking to different pages and retrieving information, how often do you really go back and look at your full journal pages? The beauty of this query is that you can discover things you may not have otherwise, like why last year was quite an eventful day. \*\*The Few Clicks Here and There\*\* With the On This Day (or whatever you called it) page set up, we can now navigate to it and right-click the title. Click "Add to Favourites" to see a new link under your favourites on the left-hand side. Drag and drop the link into your preferred position, I like mine on the top of my favourites so that I see it first. You should see something along the lines of the following:
All you now need to do, is each day, click the first link and either laugh or be worried about what was going on in your life in the past. \*\*Other Tweaks\*\* The query as currently set up sits outside the journals page and always defaults to today's page as opposed to the journal page (for example if I put the query on 25 January 2023 - I will still get back today's results). I do not see this as a shortcoming but more of a bonus. When writing and taking notes, I do not want to be distracted by what I was doing last year (yes I could collapse the query, but less is more. Also, I do not want to be overwhelmed by too much information about all of my historical journals on every journal page I navigate to. In essence, whilst tweaks are possible, I will be starting easy. I just want to see what I did in the past on this day. If I missed yesterday's, then tough luck for me. A quick video of how to get this set up has been included below: {% embed url="" %} \*\*Breakdown of the Query\*\* Thank you to \[Bas / Tools on Tech\](https://twitter.com/ToolsonTech) for adding \[commentary\](https://pastebin.com/Hagdw2JJ) to the query and how it works. Much appreciated. \`\`\`markdown #+BEGIN\_QUERY { ; Set Title :title "⌛ On this day..." ; Get all blocks :query \[:find (pull ?b \[\*\])\ ; We want to filter on Today, so we get that variable as input (See input)\ :in $ ?today\ :where\ ; Now to filter, first, we only want journal pages\ \[?b :block/page ?p\]\ \[?p :page/journal? true\]\ ; Then we fetch the Day of the Journal page, store it in ?jd\ \[?p :page/journal-day ?jd\] \ ; Tricky part, but what happens it turns date into string\ ; Not sure, but I assume unix timeformat so YYYYMMDD\ ; Then use subs to cutoff the YYYY \ \[(str ?jd) ?jds\] \ \[(subs ?jds 4 8) ?md1\]\ ; Then we do the same trick for today\ \[(str ?today) ?td\]\ \[(subs ?td 4 8) ?md2\]\ ; What we are left with is a compare of Today without year, matches pages\ ; without year \ \[(= ?md1 ?md2)\]\ ; Finally filter out today, as that's not history....yet\ \[(< ?jd ?today)\]\ \] ; Make Logseq provide todays date :inputs \[:today\] ; Why yes we want to see the year :breadcrumb-show? true ; And show me everything unfolded :collapsed? False } #+END\_QUERY \`\`\` Hope you find this useful and thanks for reading / watching. ---