A simple but powerful Alfred workflow to quickly add entries to your daily LogSeq journal.
- Quick Add: Use the
lskeyword to instantly add a new block to your daily journal page. - Secure: Your LogSeq API key is stored securely in the macOS Keychain, not in plain text.
- Customizable Date Format: Supports LogSeq's default ordinal date format (e.g., "Sep 6th, 2023") or a custom
strftimeformat.
- Go to the Releases page of this repository.
- Download the latest
Logseq.alfredworkflowfile. - Double-click the downloaded file to install it in Alfred.
Before using the workflow, you need to configure it with your LogSeq API key.
- In LogSeq, go to
Settings>Featuresand enable the HTTP API Server. - Copy your API Authorization Token.
- In Alfred, type
ls-setkey, paste your API key, and press Enter.- Example:
ls-setkey 12345-abcdef-67890
- Example:
- You will see a notification confirming that the key has been saved.
With the workflow installed and configured, simply use the ls keyword in Alfred to add an entry.
- Keyword:
ls - Action: Type your journal entry after the keyword.
- Example:
ls Finished updating the README for my new project.
This will append "- Finished updating the README for my new project." as a new block on today's journal page in LogSeq.
You can customize the workflow's behavior by changing its environment variables in Alfred's workflow editor.
api_endpoint: The address of the LogSeq API server. Defaults tohttp://127.0.0.1:12315/api.journal_date_format: Controls the date format used for the journal page name.ordinal(default): Uses LogSeq's default format, e.g., "Sep 6th, 2023".- Any other value is treated as a
strftimeformat string, e.g.,%Y-%m-%dwould produce "2023-09-06".
The build.sh script will package the workflow into a compressed .alfredworkflow file. You can add an optional install argument to have it automatically open it which will prompt you to install/update into Alfred.
