cheat-sheets

Logseq

Logseq is an open-source, local-first outliner for notes and knowledge management. Everything is a block in a bulleted outline, pages link to each other with [[wikilinks]], and every day gets a journal page. Data is stored as Markdown (or Org-mode) files in a folder. Similar to Obsidian but block-first; for a notebook style app see Joplin.

Homepage: Logseq Docs: Logseq Docs Source: logseq/logseq


Graph Folder Layout #

FOLDERCONTENT
pages/One file per page
journals/One file per day (2026_11_06.md)
assets/Attached images and files
logseq/Config, custom CSS and plugins (config.edn, custom.css)

Because it is plain Markdown, the folder works with Git and any file sync tool.

Syntax #

SYNTAXDESCRIPTION
[[Page]]Link to a page
#tag or #[[multi word tag]]Tag (a tag is a page)
(( then searchReference another block
{{embed [[Page]]}}Embed a page
{{embed ((block-uuid))}}Embed a block
TODO / DOING / DONE / LATER / NOWTask markers at the start of a block
SCHEDULED: <2026-11-06 Fri>Scheduled date
key:: valueBlock or page property
/Slash command menu (templates, queries, dates, and more)

Queries #

Simple queries go in a block:

{{query (and [[project]] (task TODO DOING))}}
{{query (between [[today]] [[today+7d]])}}

Advanced queries use Datalog in a #+BEGIN_QUERY block. See the docs for the query syntax.

Keyboard Shortcuts #

On macOS use Cmd for Ctrl. Rebind under Settings > Keymap.

SHORTCUTDESCRIPTION
Ctrl+KSearch
Tab / Shift+TabIndent or outdent a block
Alt+Shift+Up / DownMove a block
EscLeave editing, select the block
Ctrl+EnterCycle TODO / DOING / DONE
Ctrl+Shift+ASelect all blocks
t rToggle the right sidebar
t lToggle the left sidebar
t tToggle light and dark theme
t wToggle wide mode
g jGo to journals
g aGo to all pages
g gGo to the graph view
g hGo home

Single-letter t and g shortcuts work when you are not editing a block.

Sync and Backup #

  • Folder-based, so use Git, Syncthing, Nextcloud or iCloud on the graph folder.
  • Logseq Sync is a paid encrypted service.
  • Keep one sync method per graph to avoid conflicts, and commit before big changes.

Logseq vs Obsidian #

  • Logseq is outline-first (each line is a block you can reference and query); Obsidian is document-first.
  • Logseq is open source; Obsidian is closed source but free for personal use.
  • Logseq is moving to a database-backed version. The file-based version described here is the long-standing one; check the project for the state of the newer release.

Not Verified #

Shortcuts and syntax were written from knowledge of the file-based version and not checked against a current install, so confirm in Settings > Keymap.

Search all sheets

Tip: / or Ctrl/Cmd+K to open, Esc to close.