No description
  • Rust 97.8%
  • Shell 2.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-24 11:32:45 -07:00
assets fixed icon 2026-11-18 13:02:46 -07:00
scripts script version bump 2026-11-23 10:10:08 -07:00
src v0.0.9 2026-11-24 11:28:50 -07:00
.gitignore first 2026-10-05 10:19:44 -06:00
Cargo.lock v0.0.9 2026-11-24 11:28:50 -07:00
Cargo.toml v0.0.9 2026-11-24 11:28:50 -07:00
README.md readme 2026-11-24 11:31:51 -07:00

Thallus 🌿

Thallus is a fast, native daily Markdown journal and note-taking application for Linux, built with Rust (eframe / egui) and backed by a local SQLite database with FTS5 full-text search.


Features

  • Zero-Friction Daily Notes
    • Opens directly to today's journal entry and auto-saves continuously as you type.
    • Configurable Daily Note Template (defaults to ## Goals and ## Notes) for new entries.
    • Optional per-line edit timestamps displayed in the left editor margin.
  • "Previous Day" Read-Only Lock
    • Historical notes from previous dates open in a locked (read-only) state by default to protect past entries from accidental keystrokes.
    • Unlock or re-lock any past entry at any time with the banner button or Ctrl+L.
  • Flexible Tagging (Inline & Multi-Word)
    • Inline hashtags: Type #tag directly in the note body (e.g., Meer8 rma at bench-07 #37446) to automatically attach 37446 to the note's tags. Editing or removing an inline #tag in the note text automatically updates the note's tags.
    • Manual & multi-word tags: Add tags (including tags with spaces) from the + Add tag bar above the editor, with autocomplete suggestions from existing tags.
    • Custom tag styling: Right-click any tag chip to customize its fill color and text contrast mode (Auto, Light, or Dark), or click a tag to filter the sidebar.
  • Bi-Directional Note Linking ([[YYYY-MM-DD]])
    • Link between daily notes using [[YYYY-MM-DD]] wiki-link syntax or press Ctrl+K to open the note link picker.
    • Displays Outgoing Links at the bottom of the editor, clickable date links in Markdown Preview mode, and an automatic Linked Mentions (Backlinks) panel for notes referencing the current date.
  • Global Task Management
    • Create Markdown tasks with - [ ] (or press Ctrl+T).
    • View and toggle tasks across all dates from the ☑ Tasks sidebar tab with All, Open, and Done filters.
    • Carry Over Unfinished to Today: One-click migration moves incomplete tasks from past dates into today's note under ## Carried Over while marking the original entries as migrated (*(migrated to [[YYYY-MM-DD]])*).
  • Previous-Day Summary via llama.cpp
    • Click ✨ Summarize Prev Day in the editor toolbar (on today's note or any unlocked past day) to stream a summary of the most recent previous non-empty entry from a local or LAN llama-server (llama.cpp) endpoint (POST /v1/chat/completions using SSE "stream": true).
    • Displays live thinking/output token progress in the toolbar with a ✖ button to cancel generation cleanly, appends a linked ## Summary of [[YYYY-MM-DD]] section to the initiating date (even if you switch dates while waiting), and shows a dismissible error banner if a request fails.
    • Saves token usage (prompt, completion, thinking/output breakdown, total), model name, and elapsed duration in the summary_runs SQLite table and shows the latest run's <N> tok • <duration> next to the button with a full breakdown tooltip on hover.
    • Configure llama_server_addr (e.g. "127.0.0.1:8080") and llama_system_prompt in ~/.local/share/thallus/settings.toml or from the ⚙ Settings window.
  • Full-Text Search & Calendar Navigation
    • Instant SQLite FTS5 search (Ctrl+F) with highlighted context snippets.
    • Interactive monthly Calendar tab highlighting today, the selected date, and all dates with entries.
  • Theming & Appearance
    • Light and Dark themes with customizable background, text, and accent colors.
    • Adjustable window transparency/opacity and editor monospace font size.
  • Markdown Preview & Import / Export
    • Toggle CommonMark preview (Ctrl+P) and open the built-in Markdown Cheatsheet (ℹ).
    • Bulk export all notes (with tags) to .md files or import .md files named YYYY-MM-DD.md.

Keyboard Shortcuts

Shortcut Action
Ctrl+F Focus sidebar full-text search
Ctrl+D Jump to Today's note
Ctrl+K Open [[YYYY-MM-DD]] note link picker at cursor
Ctrl+T Insert - [ ] task item at cursor
Ctrl+P Toggle Markdown Preview mode
Ctrl+L Unlock / Re-lock a past note
Alt+Left / Alt+Right Navigate to Previous / Next day

Building & Running

Prerequisites

  • Rust toolchain (Edition 2024)
  • SQLite3 development libraries (sqlite3 / pkgconfig(sqlite3))

Build & Run

# Run in development mode
cargo run

# Build optimized release binary
cargo build --release

# Run unit tests
cargo test

Data Storage

Thallus stores all data locally in your user XDG data directory (~/.local/share/thallus/):

  • Database: ~/.local/share/thallus/thallus.db (SQLite database in WAL mode storing notes, tags, FTS5 search index, and summary_runs generation metrics)
  • Settings: ~/.local/share/thallus/settings.toml
  • Desktop Integration: Automatically installs user-local icon and .desktop entry under ~/.local/share/icons/hicolor/ and ~/.local/share/applications/thallus.desktop on first launch.

Versioning & Releases

Use scripts/bump-version.sh to increment the version in Cargo.toml and Cargo.lock, create a release commit, and tag it in Git (leaving git push manual):

# Increment patch version (e.g. 0.0.7 -> 0.0.8), commit, and create git tag v0.0.8
./scripts/bump-version.sh

# Increment minor or major version
./scripts/bump-version.sh minor
./scripts/bump-version.sh major

# Set an explicit version with a custom commit message
./scripts/bump-version.sh 0.0.8 -m "in-body tagging and readme"

# Preview changes without modifying files or git history
./scripts/bump-version.sh --dry-run

After running the script, push the commit and tag when ready:

git push && git push --tags