Published: 2024-12-14 14:36
If you're like me, you live in the terminal.
Whether it's managing files, editing code, or checking git status - the command line is home. If there is one thing that slows me down it's switching out of the terminal to take a quick note. I needed a terminal-based tool that brings Logseq journaling to the command line.
This break in my flow happens so often that I decided to make lsq. lsq solves this by bringing Logseq journaling right to your terminal. Create, edit, and manage journal entries without leaving your command line workflow.
Install lsq:
go install github.com/jrswab/lsq@latest
Verify installation:
lsq -h
That's it! lsq automatically detects your Logseq directory and configuration.
Start journaling immediately with:
lsq
This opens today's journal in your $EDITOR. Prefer a terminal UI? Use:
lsq -t
Have your Logseq files in a non-standard directory? Maybe in your Documents folder or a different drive?
lsq -d ~/Documents/MyLogseq
Open a past or future journal page:
lsq -s 2024-12-24
lsq has a built-in TUI mode that brings Logseq's core functionality right to your terminal.
Ctrl+t: Toggle TODO states (DONE, DOING, NOW, LATER, TODO)Ctrl+p: Cycle prioritiesCtrl+f: Search pages and aliasestab: Indent line (from anywhere!)shift+tab: Unindent lineCtrl+s: SaveCtrl+c: ExitPress Ctrl+f and type to search. For example:
Pro tip: Combine tab with TODO states for rapid task management:
- Draft blog post
- DONE Outline main points
- TODO Add code examples
- LATER Add screenshots
lsq uses your existing Logseq configuration in config.edn for some basic information:
{:meta/version 1
:preferred-format "Markdown"
:journal/file-name-format "yyyy_MM_dd"}
lsq is built in Go for speed and uses the lightning-fast Bubble Tea framework for its TUI. No waiting for Electron to load or web interfaces to render - just pure terminal efficiency.
Remember: The best journal entry is the one you actually write. lsq removes the friction of context switching, keeping you in your terminal flow while maintaining your knowledge base.
Happy terminal journaling!