A command-line tool for rapid journal entry creation in Logseq, featuring both TUI and external editor support.
- Terminal User Interface (TUI) with real-time editing
- External editor integration (vim by default)
- Automatic journal file creation
- Support for both Markdown and Org formats
- Configurable file naming format
- Customizable Logseq directory location
go install github.com/jrswab/lsq@latest
Basic usage:
lsq
This opens today's journal in your default editor (EDITOR environment variable).
-t
: Use the built-in TUI instead of external editor-d
: Specify Logseq directory name (default: "Logseq")-l
: Specify Logseq config directory name (default: "logseq")-c
: Specify config filename (default: "config.edn")-e
: Set editor environment variable (default: "EDITOR")
Ctrl+S
: Save current fileCtrl+C
: QuitCtrl+T
: Cycle through TODO states on current lineCtrl+P
: Cycle through priority states on current line- Arrow keys: Navigate through text
LSQ reads your Logseq configuration from config.edn
. Supported settings:
meta/version
: Configuration versionpreferred-format
: File format ("Markdown" or "Org")journal/file-name-format
: Date format for journal files (e.g., "yyyy_MM_dd")
- Bubble Tea: Terminal UI framework
- EDN: Configuration file parsing
GPL v3