aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 43eccf4a4fdf9dcefbd1726b266148e282c3f885 (plain)
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
# Features

- Manage events and repeated events.
- Store events in a single SQLite file.
- List today’s events with CLI option `--list-today`.

# Screenshot

![Screenshot](screenshot.png)

# Links

- gtk4-rs book: https://gtk-rs.org/gtk4-rs/git/book/
- gtk4-rs documentation: https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/
- Event-Driven GTK by Example — 2021 Edition: https://mmstick.github.io/gtkrs-tutorials/

# Getting started

Bootstrap a shell with all the required dependencies with `nix develop` (requires nix).

Start the application with:

```bash
cargo run
```

Run tests with:

```bash
cargo test
```

Get today’s events with:

```bash
cargo run -- --list-today
```

# TODO

- Add description textarea field
- More visible months

## Categories CRUD

1. Add category form
2. Show categories
3. Update category
4. Delete category

## Optimizations

- Optimize refresh.
https://users.rust-lang.org/t/profilers-and-how-to-interpret-results-on-recursive-functions/13222

## Multi day events

- Try width parameter using grid.attach.

## Nice to have

- Drag & drop events.
- Prevent launching multiple instances.
- Show a date picker in dialog form.
- Print errors on forms when validating.
- Validate the form when pressing enter on any field.
- Select the default focus with a button or a shortcut.