#caldav #productivity #todo

bin+lib cfait

A powerful, fast and elegant CalDAV task manager (TUI & GUI)

26 releases

Uses new Rust 2024

new 0.4.0 Dec 30, 2025
0.3.14 Dec 29, 2025
0.2.9 Dec 8, 2025
0.2.2 Nov 29, 2025
0.1.9 Nov 26, 2025

#143 in GUI

GPL-3.0 license

3.5MB
23K SLoC

Rust 17K SLoC // 0.1% comments Kotlin 6.5K SLoC // 0.1% comments Python 80 SLoC // 0.2% comments Batch 73 SLoC Prolog 6 SLoC

Contains (JAR file, 44KB) gradle-wrapper.jar

Cfait -- Take control of your TODO list

Cfait is a powerful, fast and elegant CalDAV task manager.

Releases F-Droid Test status License Donate through Liberapay


Cfait is a task manager for people who want speed, efficiency, and ownership of their data.

It connects to any standard CalDAV server (Radicale, Xandikos, Baikal, Nextcloud, iCloud, etc.) so your tasks aren't locked inside a proprietary walled garden. It's written in Rust, meaning it starts instantly and handles large lists without stuttering.

You can use it comfortably from the command line (TUI), on your desktop (GUI), or on the go with the native Android app. It's built "offline-first," so you can keep working without an internet connection and Cfait will sync your changes the next time you go online.

Table of Contents

✨ Features

  • Smart Input: Type your tasks naturally. Buy cookies @tomorrow @@bakery !1 is parsed instantly into a high-priority task due tomorrow at the bakery.
  • Hierarchical Tags & Locations: Organize deeply with tags like #dev:cfait or #cooking:cookies, and locations like @@home:office or @@store:aldi:downtown.
  • Dependencies: Block tasks until others are done. You can create parent/child tasks or loose dependencies (RFC9253).
  • Recurrence: Powerful repetition rules for habits and recurrent tasks.
  • Inline Aliases: Define shortcuts on the fly; typing #gardening:=#fun,@@home or @@aldi:=#groceries,#shopping applies the alias immediately and saves it for future use (retroactive).
  • Cross-Platform: Runs on Linux, Android, and Windows. (Probably on MacOS too.)

📸 Screenshots

Desktop (GUI & TUI) Mobile (Android)
Cfait GUI Screenshot
The Graphical Interface in v0.3.14 (history)

Cfait TUI Screenshot
The Terminal Interface in v0.3.14 (history)
Cfait Android Screenshot
The Android client in v0.3.14 (history and more)

🚀 Installation

🐧 Linux

  • Arch Linux (AUR): yay -S cfait (or cfait-git)
  • Debian/Ubuntu/Mint: Download the .deb file from the releases page. (Req. Ubuntu 24.04+ / Mint 22+ / Debian 13+)
  • Generic: Download the pre-compiled .tar.gz binary tarball from the releases page. (Req. glibc 2.39, e.g. Fedora 40+)

📱 Android

  • F-Droid
  • Google Play: Submitted, currently in testing. More testers are needed for inclusion in the Play Store, please contact me.
  • APK: Download the latest universal APK from the releases page.

đŸĒŸ Windows

  • Download the .zip archive from the releases page. Contains both cfait.exe (TUI) and cfait-gui.exe (GUI).

âš™ī¸ From Source (Rust)

Requires standard system libraries (openssl, alsa, fontconfig, x11, xkbcommon).

# Install TUI only
cargo install cfait

# Install GUI
cargo install cfait --features gui --bin gui

Replace cfait with . to build locally.

âŒ¨ī¸ Smart Input Syntax

You don't need to click through menus to set the due/start date, length, priority, recurrence, tags, location,... Just type.

Basics

Property Syntax Description
Priority !1 1 is highest (critical), 9 is lowest. 5 is normal.
Due Date @ / due: When the task must be finished.
Start Date ^ / start: When you plan to start (hides from "active" views until then).
Recurrence @ / rec: How often the task repeats.
Duration ~ / est: Estimated time to complete.
Tag # Categories. Use : for hierarchy (e.g. #gardening:tree_planting).
Location @@ / loc: Where the task happens. Supports hierarchy like tags (e.g. @@home:office, @@store:aldi:downtown).
Reminder rem: Set an notification. (e.g. rem:10m, rem:8am, rem:tomorrow 9:00).
Calendar Event +cal / -cal Override calendar event creation (per-task). +cal forces event creation, -cal prevents it.

You can also type url: (e.g. url:https://www.trougnouf.com), geo: (e.g. geo:53.046070, -121.105264), and desc: (e.g. desc:"a description" or desc:{une description})

Escaping: If you need to use special characters literally in your task summary (like #, @, !), prefix them with a backslash: \#not-a-tag \@not-a-date.

Date & Time Formats

You can use absolute ISO dates or natural language relative offsets.

  • Keywords: today, tomorrow
  • Offsets: 1d (days), 1w (weeks), 1mo (months), 1y (years).
    • @2d = Due in 2 days.
    • ^1w = Start in 1 week.
    • The word "in" is optional: @2 weeks works the same as @in 2 weeks
  • Weekdays: @friday, @monday, etc. (or with "next": @next friday)
    • Both forms work identically - they always go to the next occurrence of that weekday
  • Next period: @next week, @next month, @next year
    • Goes to the next occurrence of that time period

Recurrence

Recurrence rules determine when the next task is created after you complete the current one.

  • Presets: @daily, @weekly, @monthly, @yearly.
  • Custom: @every X unit.
    • @every 3 days
    • @every 2 weeks

Duration Units

Supported units for ~ duration estimates: m (minutes), h (hours), d (days), w (weeks), mo (months), y (years).

  • ~15m (15 minutes)
  • ~1.5h (1 hour 30 minutes)

Reminders

Set alarms to notify you about tasks. Reminders can be relative (recalculated when due date changes) or absolute (fixed time).

  • Relative (to due date): rem:10m = 10 minutes before due date, rem:1h = 1 hour before due date
    • These automatically adjust if you change the task's due date
  • Relative (from now): rem:in 5m = 5 minutes from now, rem:in 2h = 2 hours from now
    • Set as absolute time when task is created (doesn't adjust with due date)
  • Next occurrence: rem:next friday = Next Friday at default time, rem:next week = 7 days from now
    • Set as absolute time at the next occurrence (doesn't adjust with due date)
  • Absolute (fixed time): rem:8am = Today (2025-01-15) at 8am, rem:2025-01-20 9am = January 20th at 9am
    • These stay at the specified time regardless of due date changes
  • Date + Time: rem:2025-12-31 10:00 (Absolute: specific date and time)

Examples

"Buy cookies !1 @2025-01-16 #shopping rem:2025-01-16 8am"

"Exercise @daily ~30m #health rem:8am"

"Update server certificates @2025-12-31 ^2025-12-01 @every 2 years rem:1w" (Due Dec 31, start working on it 1 month prior, reminder 1 week before)

"Plant plum tree #tree_planting !3 ~2h" and "#tree_planting:=#gardening,@@home"

The syntax highlighting should visually let you know whether your statements are valid.

Aliases (Templates)

Define global shortcuts using :=. Aliases can inject tags, locations, priorities, or other properties. This applies to the past, present, and future tasks. (It may take some time to update all affected tasks.)

Tag Aliases:

  • Define: #tree_planting:=#gardening,@@home,!3
  • Use: Typing Plant plum tree #tree_planting ~1h expands to:
    • Tags: #tree_planting #gardening
    • Location: "home"
    • Priority: 3

Location Aliases:

  • Define: @@aldi:=#groceries,#shopping or loc:aldi:=#groceries,#shopping
  • Use: Typing Buy milk @@aldi expands to:
    • Location: "aldi"
    • Tags: #groceries #shopping

Hierarchical Aliases: Both tags and locations support hierarchy. Child locations/tags automatically inherit parent aliases.

  • #gardening:tree_planting → matches both #gardening:tree_planting and parent #gardening aliases
  • @@store:aldi:downtown → matches @@store:aldi:downtown, @@store:aldi, and parent @@store aliases

Note: If your alias contains spaces, "quote it" or {put it between brockets}, e.g. #"tree planting":=#gardening or @@"somewhere else":=#location. You can define aliases inline while creating tasks, as standalone statements, or in the Settings.

🔍 Search & Filtering

The search bar isn't just for text. You can use operators (<, >, <=, >=) to filter your list precisely.

Status Filters

  • is:ready - Shows only actionable tasks right now (not completed/cancelled, start date passed or not set, not blocked by dependencies)
  • is:done / is:active / is:ongoing
  • Combine with other filters: is:ready #work, is:ready ~<1h

Priority Filters (!)

  • !<2 (Priority 1 only - Critical)
  • !>=5 (Normal or lower priority)

Date Filters (@ / ^)

Date filters now support relative dates for both due (@) and start (^) dates, plus a "not set" operator (!):

  • Overdue/Past:
    • @<today (Overdue tasks)
    • ^<today (Started before today)
  • Future:
    • @>tomorrow (Due after tomorrow)
    • ^>1w (Start more than 1 week from now)
  • Relative dates:
    • @<=2d (Due within the next 2 days)
    • ^<5d (Start within the next 5 days)
  • "Not Set" operator (trailing !):
    • @<today! (Overdue OR no due date)
    • ^>1w! (Start later than 1 week OR no start date)
    • @<=2025-12-31! (Due before Dec 31 OR no due date)

Duration Filters (~)

  • ~<30m (Quick tasks, less than 30 mins)
  • ~>2h (Long tasks)

Tag Filters

  • #gardening (Contains this tag)
  • #work:project (Matches tag or any sub-tag like #work:project:urgent)

Location Filters

  • @@home (Matches location field)
  • @@store:aldi (Matches location or any sub-location like @@store:aldi:downtown)

Combining Filters

You can combine multiple filters: is:ready !<4 ~<1h #gardening (actionable high-priority gardening tasks under an hour).

📅 Calendar Events for Tasks

Cfait can automatically create calendar events (VEVENT) for tasks with dates, making them visible in any CalDAV calendar app.

Enable:

  • GUI/Android: Toggle "Create calendar events for tasks with dates" in Settings
  • TUI: Add create_events_for_tasks = true to ~/.config/cfait/config.toml

When you toggle this setting on, events will be retroactively created for all existing tasks with start and/or due dates.

Per-Task Control: Use +cal to force enable or -cal to disable for specific tasks:

Playing Terraforming Mars ^tomorrow 2pm ~4h +cal
Very private task @tomorrow -cal

Behavior:

  • Creates/updates events when tasks have dates
  • Events are always deleted (or moved) when tasks are deleted (or moved)
  • Optional: Delete events when tasks are completed or cancelled (toggle in Settings, default: keep)

Events Cleanup:

  • Use the "Delete all calendar events" button in the GUI or Android Settings to remove all auto-generated events

💾 Export & Backup

Export your local tasks to standard .ics (iCalendar) format for backup or sharing with other applications.

TUI (Command Line):

# Export to file
cfait export > backup.ics

# View export content
cfait export

# Pipe to other tools
cfait export | grep 'SUMMARY'

GUI (Desktop):

  1. Open Settings (gear icon)
  2. Scroll to "Data Management" section
  3. Click "Export Local Tasks (.ics)"
  4. Choose save location in file dialog

Android:

  1. Open Settings
  2. Scroll to "Data Management" section
  3. Tap "Export Local Tasks (.ics)"
  4. Choose where to save/share (Google Drive, Email, Files, etc.)

The exported .ics any CalDAV-compatible application.

🎮 TUI Keybindings

If you are using the Terminal interface, here are the essentials (Press ? inside the app for the full interactive help menu.).

Navigation & Views

  • Tab: Switch focus (Tasks ↔ Sidebar)
  • j / k: Move selection Down / Up
  • 1 / 2 / 3: Switch Sidebar (Calendars / Tags / Locations)
  • /: Search tasks

Task Management

  • a: Add task
  • e / E: Edit title / Edit description
  • Space: Toggle Done status
  • s: Toggle Start / Pause
  • S: Stop (Reset to Needs Action)
  • x: Cancel task
  • d: Delete task

Organization & Hierarchy

  • y: Yank task ID (Copy)
  • b: Mark selection as Blocked by yanked task
  • c: Make selection a Child of yanked task
  • l: Link selection as Related to yanked task
  • > / <: Indent / Outdent (visual depth)
  • + / -: Adjust Priority

Sidebar Actions

  • Enter: Toggle filter / Select calendar
  • Space: Toggle visibility (show/hide layer)
  • *: Isolate (hide all others)

Note: The sidebar shows hierarchical tags and locations. For example, if you have tasks with #work:project:urgent and #work:meeting, they'll be organized under the #work parent in the sidebar.

The GUI also supports / for search and a for adding tasks.

🤗 Support

If you enjoy using Cfait, consider supporting the developper:

  • đŸ’ŗ Liberapay: https://liberapay.com/trougnouf
  • đŸĻ Bank (SEPA): BE77 9731 6116 6342
  • â‚ŋ Bitcoin: bc1qc3z9ctv34v0ufxwpmq875r89umnt6ggeclp979
  • Ł Litecoin: ltc1qv0xcmeuve080j7ad2cj2sd9d22kgqmlxfxvhmg
  • Ξ Ethereum: 0x0A5281F3B6f609aeb9D71D7ED7acbEc5d00687CB

đŸĒŠ Mirrors

  • Codeberg (Primary with Linux, Android, and cross-compiled Windows builds)
  • GitHub (Mirror with Linux and native Windows builds)
  • GitLab (Mirror)

đŸ›Ąī¸ Privacy Policy

Cfait does not collect data; data is stored on your device and on your CalDAV server.

âš–ī¸ License

GPL3

â˜ī¸ CalDAV Providers

Cfait works with any standard CalDAV server. If you don't have one yet, here are some suggestions:

Self-Hosted

  • Radicale: One of the easiest, lightweight solution to host on a Raspberry Pi or VPS.
  • Nextcloud: A popular full-suite option (files, contacts, and calendars).

Free & Managed

  • Infomaniak: A Swiss provider with a free tier that includes a CalDAV account.
    • How to connect: After signing up, go to config.infomaniak.com. Click "On this device" followed by "My Calendars" to reveal your specific Server URL and Login username. (Use your infomaniak password.)

You can also use the Local calendar entirely offline (and there is the possibility to migrate to and synchronize with a CalDAV server at a later time).

đŸ’Ŧ Community & Support

Have a question, found a bug, a great idea, or just want to chat?

Dependencies

~39–90MB
~1.5M SLoC