- Add urgency calculation based on multiple factors: * Due date (linear scale: overdue=12.0, today=10.0, week=6.0, 2weeks=2.0) * Priority (H=6.0, M=3.9, D=1.8, L=0.0) * Age (0-2.0 over 365 days) * Active status (+4.0 boost) * Waiting status (-3.0 penalty) * Tags (+1.0 with count modifier) * Project assignment (+1.0) * Configurable urgent tag (default 'next', +15.0) - Replace priority column with urgency in all reports * Display as decimal with 1 decimal place * 4-tier color coding: ≥10 (bright red), ≥5 (red), ≥2 (yellow), <2 (cyan) * Minimal format color-coded by urgency - Add default urgency sorting to all reports * list, minimal, active, ready, overdue reports sort by urgency * newest/oldest keep date-based sorting - Implement 'next' report * Shows most urgent ready tasks * Configurable limit (default 5) * Only includes tasks ready to work on (no future wait/scheduled) - Add urgency display to info command * Shows urgency score alongside priority - All urgency coefficients configurable via config * Adjusted defaults for Opal's simpler model (no blocking/annotations) * Configurable urgent tag name (not hardcoded to 'next') Priority order maintained: High > Medium > Default > Low
Opal task manager
This is the counterpart to jade, where we track tasks.
Syntax
opal [<filter>] [<command>] [<modifier>]
Filters the Task to run a command on. Adressing a set of subtasks.
opal +home -garden status:pending list - lists all tasks with the +home tag and status pending, but excludes +garden tags. This is a compound filter with implicit AND.
add - Creates a new task
done - Completes a task
list - Lists task
count - Counts number of tasks
Modifies atributes of tasks.
Task
A task has multiple atributes:
status - pending, completed, deleted, recurring
description - One line summary
start - the most recent time at which this task was started (a task with no start key is not active)
end - if present, the time at which this task was completed or deleted
due - Use a due date to specify the exact date by which a task must be completed.created - Time task created
schedueled - represents the earliest opportunity to work on a task. If a task has a scheduled date, then once that date passes, the task is considered ready. Tasks with no scheduled is considered always ready.
wait - a wait date for a task, which has the effect of hiding the task from you until that date.
until - the point at which to mark task as deleted. an expiration date.
Recurrence
A task can be recurring. Then we have a template task and instances of that task.
opal add Change sheets due:sun recur:1w - A task to be done every sunday.
A recurring task is given a status of recurring which hides it from view. The recurring task you create is called the template task, from which recurring tasks instances are created. So the template remains hidden, and the recurring instances that spawn from it are the tasks that you will see and complete.
Storage
SQLite database stored in ~/.config/jade/opal.db
Server & Sync
Opal-task includes a REST API server for syncing tasks across multiple devices.
Quick Start
Server Setup:
# Build
go build -o opal main.go
# Generate API key
./opal server keygen --name "My Device" --db /var/lib/opal/opal.db
# Start server
./opal server start --addr :8080 --db /var/lib/opal/opal.db
Client Setup:
# Configure sync
opal sync init --url https://opal.yourdomain.com --key oak_abc123...
# Sync tasks
opal sync now
# Initial merge (for existing local database)
opal sync merge
Sync Commands
opal sync init- Configure sync with serveropal sync status- Show sync configuration and statusopal sync now- Bidirectional syncopal sync up- Push local changes to serveropal sync down- Pull server changes from serveropal sync merge- Initial database merge (for first-time sync)opal sync log- View conflict resolution log
Features
- Offline support - Queue changes when server is unreachable
- Conflict resolution - Automatic conflict handling (last-write-wins by default)
- Change tracking - Full change log with configurable retention
- API key authentication - Secure bcrypt-hashed keys
- Household sharing - Single shared database for all family members
See srv/README.md for detailed server deployment instructions.