cfait 0.5.6

Powerful, fast and elegant task / TODO manager. (GUI & TUI, CalDAV & local)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
![Cfait -- Take control of your TODO list](https://commons.wikimedia.org/wiki/Special:FilePath/Cfait_featureGraphic_(hardcoded_text).svg)

<p align="center">
  <strong>Cfait is a powerful, fast and elegant task manager. (CalDAV and local, GUI, TUI, and Android clients)
</strong>
</p>

<p align="center">
  <a href="https://codeberg.org/trougnouf/cfait/releases"><img src="https://codeberg.org/trougnouf/cfait/badges/release.svg" alt="Releases"></a>
  <a href="https://f-droid.org/packages/com.trougnouf.cfait/"><img src="https://img.shields.io/f-droid/v/com.trougnouf.cfait.svg" alt="F-Droid"></a>
  <a href="https://codeberg.org/trougnouf/cfait/actions"><img src="https://codeberg.org/trougnouf/cfait/badges/workflows/test.yml/badge.svg" alt="Test status"></a>
  <a href="https://codeberg.org/trougnouf/cfait/src/branch/main/LICENSE"><img src="https://img.shields.io/badge/license-GPLv3-gray.svg" alt="License"></a>
  <a href="https://liberapay.com/trougnouf/donate"><img src="https://img.shields.io/liberapay/patrons/trougnouf?label=donate" alt="Donate through Liberapay" /></a>
</p>

---

**Cfait** is a task manager / TODO list 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.

<strong>Table of contents</strong>

- [✨ features](#features)
- [📸 screenshots](#screenshots)
- [🚀 installation](#installation)
  - [🐧 Linux](#linux)
  - [📱 Android](#android)
  - [đŸĒŸ Windows](#windows)
  - [🍎 MacOS](#macos)
  - [âš™ī¸ From source (Rust)](#from-source-rust)
- [âŒ¨ī¸ Smart input syntax](#smart-input-syntax)
- [🔍 Search & filtering](#search--filtering)
- [📊 Task sorting](#task-sorting)
- [📅 Calendar events for tasks](#calendar-events-for-tasks)
- [💾 Export & backup](#export-backup)
- [🎮 Keybindings and TUI configuration](#tui-keybindings)
- [🤗 Support](#support)
- [đŸĒŠ Mirrors](#mirrors)
- [đŸ›Ąī¸ Privacy policy](#privacy-policy)
- [âš–ī¸ License](#license)
- [â˜ī¸ CalDAV providers](#caldav-providers)

</details>

<a name="features"></a>
## ✨ 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 <small>(RFC9253)</small> (or manually block with `#blocked`).
*   **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).
*   **Time Tracking & Progress:** Start and pause tasks to automatically track the time spent. By combining this with an estimated duration (`~2h`), Cfait automatically calculates and visualizes your progress (e.g. `[1h / ~2h]`).
*   **Cross-Platform:** Runs on Linux, Android, Windows, and MacOS.

<a name="screenshots"></a>
## 📸 screenshots

| Desktop (GUI & TUI) | Mobile (Android) |
| :---: | :---: |
| ![Cfait GUI Screenshot](https://commons.wikimedia.org/wiki/Special:FilePath/Cfait_task_manager_v0.5.2_screenshot_(GUI).png)<br>The Graphical Interface in v0.5.2 <small>([history](https://commons.wikimedia.org/wiki/Category:Screenshots_of_Cfait_(GUI)))</small><br><br>![Cfait TUI Screenshot](https://commons.wikimedia.org/wiki/Special:FilePath/Cfait_task_manager_v0.5.0_screenshot_(TUI).png)<br>The Terminal Interface in v0.5.0 <small>([history](https://commons.wikimedia.org/wiki/Category:Screenshots_of_Cfait_(TUI)))</small> | ![Cfait Android Screenshot](https://commons.wikimedia.org/wiki/Special:FilePath/Cfait_task_manager_v0.5.2_screenshot_(Android).png)<br>The Android client in v0.5.2 <small>([history and more](https://commons.wikimedia.org/wiki/Category:Screenshots_of_Cfait_(Android)))</small> |

<a name="installation"></a>
## 🚀 installation

## Configuration
Self-documenting config file. See also: https://codeberg.org/trougnouf/cfait/wiki/Configuration

<a name="linux"></a>
### 🐧 Linux
*   **Flatpak:** Available on [Flathub](https://flathub.org/apps/com.trougnouf.Cfait)
*   **Arch Linux (AUR):** `yay -S cfait` (or `cfait-git`)
*   **Debian/Ubuntu/Mint:** Download the `.deb` file from the [releases page](https://codeberg.org/trougnouf/cfait/releases). (Req. Ubuntu 24.04+ / Mint 22+ / Debian 13+)
*   **Generic:** Download the pre-compiled `.tar.gz` binary tarball from the [releases page](https://codeberg.org/trougnouf/cfait/releases). (Req. `glibc 2.39`, e.g. Fedora 40+)

<a name="android"></a>
### 📱 Android
*   **<a href="https://f-droid.org/packages/com.trougnouf.cfait/">F-Droid</a>**
*   **<a href="https://play.google.com/store/apps/details?id=com.trougnouf.cfait">Google Play</a>**
*   **APK:** Download the latest universal APK from the [releases page](https://codeberg.org/trougnouf/cfait/releases).

<a name="windows"></a>
### đŸĒŸ Windows
*   Download the `.zip` archive from the [releases page](https://codeberg.org/trougnouf/cfait/releases). Contains both `cfait.exe` (TUI) and `cfait-gui.exe` (GUI).

<a name="macos"></a>
### 🍎 MacOS
*   Download pre-compiled binaries provided by Martin Stut on https://static.stut.de/cfait-macos/

<a name="from-source-rust"></a>
### âš™ī¸ From Source (Rust)

#### Desktop (TUI/GUI)
Requires Rust (latest stable version recommended).
```bash
# Install TUI only
cargo install cfait

# Install GUI
cargo install cfait --features gui --bin cfait-gui
```
Replace `cfait` with `.` to build locally.
Remove `--release` to build in debug mode. (Much faster compilation, much slower execution.)

#### Android
Requires [Android NDK](https://developer.android.com/ndk/downloads) and [cargo-ndk](https://github.com/bbqsrc/cargo-ndk).

```bash
# Set up Android NDK environment variables
export ANDROID_NDK_HOME=/path/to/android-ndk
export ANDROID_NDK_ROOT=/path/to/android-ndk

# Build native libraries for Android architectures (these are the release libs that go into the APK)
cargo ndk -t aarch64-linux-android -t x86_64-linux-android \
  -o ./android/app/src/main/jniLibs build --release --lib --features mobile

# Build a host (local) library for UniFFI bindgen to read
# NOTE: The UniFFI metadata extractor can fail on release builds that are stripped or
# use aggressive LTO. To reliably generate Kotlin bindings, build the host library in
# debug mode and let uniffi-bindgen read `target/debug/libcfait.so`.
cargo build --lib --features mobile

# Generate Kotlin bindings using the host/debug library
# This does NOT change the Android release libs you built above (those are still packaged
# into the APK). The debug host library is used only locally so bindgen can extract metadata.
cargo run --features mobile --bin uniffi-bindgen generate \
  --library target/debug/libcfait.so \
  --language kotlin --out-dir ./android/app/src/main/java --config uniffi.toml

# Build APK using Gradle (packages the release native libraries built earlier)
cd android
./gradlew assembleRelease
```

The APK will be in `android/app/build/outputs/apk/release/`.

<a name="smart-input-syntax"></a>
## âŒ¨ī¸ smart input syntax

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

The clients are self-documenting; the most up-to-date documentation should be provided in the built-in help.

### 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 (`~30m`, `~1h`, `~1h-2h`). |
| **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://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.
    *   `^@tomorrow` = Start and Due tomorrow.
    *   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`
*   **Specific weekdays:** `@every <weekday>` or `@every <weekday1>,<weekday2>,...`
    *   `@every monday` (every Monday)
    *   `@every monday,wednesday,friday` (Mon/Wed/Fri)
    *   `@every tue,thu` (Tuesday and Thursday)
    *   Supports short (`mo,tu`), abbreviated (`mon,tue`), or full names (`monday,tuesday`)
*   **Auto-dates:** If you specify recurrence without any dates, both start and due dates are automatically set to the first occurrence.
    *   `Morning routine @daily` → starts and is due today, repeats daily
    *   `Yoga class @every monday` → starts and is due next Monday, repeats weekly
    *   For `@daily`, `@weekly`, etc., the first occurrence is today
    *   For `@every monday`, `@every monday,wednesday,friday`, etc., the first occurrence is the next matching day
*   **End Date:** `until <date>` - Sets an end date for the recurrence (RRULE UNTIL). The end date is **inclusive** (the task will occur on that date).
    *   `@daily until 2025-12-31` (repeats daily until December 31st)
    *   `@every 2 weeks until 2026-06-30` (repeats every 2 weeks until June 30th)
*   **Exception Dates:** `except <value>` - Skips specific occurrences.
    *   **Specific dates:** `@weekly except 2025-01-20` (skips January 20th)
    *   **Comma-separated dates:** `@daily except 2025-12-25,2026-01-01` (skips multiple dates)
    *   **Weekdays:** `@daily except mo,tue` or `@daily except monday,tuesday` or `@daily except saturdays,sundays`
    *   **Months:** `@monthly except oct,nov,dec` or `@weekly except march` (excludes entire months)
    *   **Mixed:** `@monthly except oct,november,dec,january` (short and long forms work together)

### Duration Units
Supported units for `~` duration estimates: `m` (minutes), `h` (hours), `d` (days), `w` (weeks), `mo` (months), `y` (years).
You can specify a single point estimate or a range.
*   `~15m` (15 minutes)
*   `~30m-1h` (Range: 30 to 60 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)
>
> `"Water plants @every 3 days until 2025-06-30"` (Every 3 days until end of June)
>
> `"Water plants @@home @monthly except oct,nov,dec,jan,feb,mar"` (Monthly watering, skip winter months)
>
> `"Practice handstands @daily except saturdays,sundays"` (Daily practice, weekdays only)
>
> `"Yoga class @every tue,thu until 2025-12-31"` (Tue/Thu classes until end of year)
>
> `"Gardening @saturday @weekly except march"` (Saturday gardening, skip March entirely)
>
> `"Plant plum tree #tree_planting !3 ~2h"` and `"#tree_planting:=#gardening,@@home"`
>
> `Bouldering @@Charleroi:Maniak @every 23 days until 2026-09-20 @in 23 days`
> 
> `Sweep the floor @weekly #chore @@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.

<a name="search--filtering"></a>
## 🔍 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, or blocked)
*   **`is:blocked`** - Shows only blocked tasks (blocked by dependencies or `#blocked` tag - excluded from urgent/due soon/started bins)
*   `is:done` / `is:active` / `is:started`
*   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 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` (Matches tasks where the *minimum* duration is < 30m. Matches `~15m-45m` because 15 < 30).
*   `~>2h` (Matches tasks where the *maximum* duration is > 2h. Matches `~1h-3h` because 3 > 2).
*   `~30m` (Matches if 30m falls within the task's estimated range).

### 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`)

## Logical Combination (Boolean Search)
You can combine multiple filters using boolean logic (AND, OR, NOT) and group them with parentheses `()`.

*   **AND (Implicit):** Separating terms with a space requires both to match. 
    *   `is:ready #gardening` (Actionable AND has gardening tag)
*   **OR (`|`):** Use a pipe character to match either condition.
    *   `@@aldi | #groceries` (Has either aldi location OR groceries tag)
*   **NOT (`-`):** Prefix a term with a dash to exclude it.
    *   `-is:done` (Excludes completed tasks)
    *   `-#blocked` (Excludes the blocked tag)

**Complex Examples:**
> `(#work | #school) -is:done`
> (Tasks tagged work or school that are not done)

> `is:ready !<4 ~<1h (#gardening | @@home)`
> (Actionable, high-priority tasks under an hour, located at home or tagged gardening)

*Tip: If your search or sidebar filters result in an empty list while you still have tasks in your database, the search/filter icons will turn red to warn you that your filters are hiding everything.*

<a name="task-sorting"></a>
## 📊 Task Sorting

Cfait organizes tasks in the following order:

1. **🔴 Urgent tasks** (priority ≤ 1 by default)
2. **⏰ Due soon** (due today or tomorrow by default)
3. **â–ļī¸ Started tasks** (status: in-process) - Sorted by due date, then priority
4. **📅 Standard tasks** (within sorting cutoff) - Sorted by due date, then priority
5. **📋 Remaining tasks** (outside cutoff or no date) - Sorted by priority, then name
6. **🔮 Future tasks** (start date not yet reached)
7. **✅ Done/Cancelled** - Completed or cancelled tasks

**Within each rank:** Tasks sort by priority → due date → name (except ranks 2, 3 & 4 which sort by due date first).

**Notes:**
- Priority 0 (unset) is treated as priority 5 (medium)
- Future start dates move tasks to rank 6, even if they have urgent priority
- Thresholds for "urgent", "due soon", and "cutoff" are configurable in settings

<a name="calendar-events-for-tasks"></a>
## 📅 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

<a name="export-backup"></a>
## 💾 CLI, Export & Background Daemon

Cfait includes a CLI for background syncing, and exporting.

**Background Sync Daemon:**
Run `cfait daemon` to automatically sync in the background at your configured interval without needing to keep a UI open.

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

**Export**:

TUI:

```bash
# Export to file
cfait export > backup.ics

# View export content
cfait export

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

GUI:
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` files can be imported into any CalDAV-compatible application.

<a name="tui-keybindings"></a>
## 🎮 TUI Keybindings

If you are using the Terminal interface (or the GUI), here are the essentials (*Press `?` inside the app or click on ⌨ for the full 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
*   `Delete`: **Delete** task
*   `R`: **Random Jump** (weighted random, ignores completed/cancelled tasks)

**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.

<a name="support"></a>
## 🤗 Support

If you enjoy using Cfait, consider supporting the developper:

*   đŸ’ŗ **Liberapay:** [https://liberapay.com/trougnouf](https://liberapay.com/trougnouf)
*   đŸ’ŗ **Ko-fi:** [https://ko-fi.com/trougnouf](https://ko-fi.com/trougnouf)
*   đŸĻ **Bank (SEPA):** `BE77 9731 6116 6342`
*   â‚ŋ **Bitcoin:** `bc1qc3z9ctv34v0ufxwpmq875r89umnt6ggeclp979`
*   Ł **Litecoin:** `ltc1qv0xcmeuve080j7ad2cj2sd9d22kgqmlxfxvhmg`
*   Ξ **Ethereum:** `0x0A5281F3B6f609aeb9D71D7ED7acbEc5d00687CB`

<a name="mirrors"></a>
## đŸĒŠ Mirrors

*   **[Codeberg](https://codeberg.org/trougnouf/cfait)** (Primary with Linux, Android, and cross-compiled Windows builds)
*   **[GitHub](https://github.com/trougnouf/cfait)** (Mirror with Linux and native Windows builds)
*   **[GitLab](https://gitlab.com/trougnouf/cfait)** (Mirror)

<a name="privacy-policy"></a>
## đŸ›Ąī¸ Privacy Policy

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

<a name="license"></a>
## âš–ī¸ License
GPL3

<a name="caldav-providers"></a>
## â˜ī¸ CalDAV Providers

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

**Self-Hosted**
*   **[Radicale](https://radicale.org/):** One of the easiest, lightweight solution to host on a Raspberry Pi or VPS.
  * When connecting to a radicale server, do not include your username in the URL.
*   **[Nextcloud](https://nextcloud.com/):** A popular full-suite option (files, contacts, and calendars).

**Free & Managed**
*   **[Disroot](https://disroot.org/):** A privacy-focused platform providing a free Nextcloud account.
    *   *How to connect:* After signing up, set `https://cloud.disroot.org/remote.php/dav` as the server URL. Use the [calendar web-interface](https://cloud.disroot.org/apps/calendar) to create a "New calendar with task list" or the [tasks web-interface](https://cloud.disroot.org/apps/tasks/collections/all) to create new tasks-only collections,

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).

Note that Open-Xchange-based servers (such as mailbox.org) are not supported because they only support a subset of the CalDAV standard.

## đŸ’Ŧ Community & Support

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

*   **đŸ—¨ī¸ Chat:** on [#Cfait:matrix.org](https://matrix.to/#/#Cfait:matrix.org).
*   **🐛 Report a Bug / ✨ Request a Feature:** [Open an issue on Codeberg](https://codeberg.org/trougnouf/cfait/issues) (or [Github](https://github.com/trougnouf/cfait/issues)).
*   **🌐 Translate:** Help translate Cfait on [Codeberg Translate](https://translate.codeberg.org/projects/cfait/).