aboutsummaryrefslogtreecommitdiff
path: root/TODOs.md
blob: f0ee27b07c39346e773437eea490eeaf76f0a1a2 (plain) (blame)
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
# Tasks

## DONE Add CHANGELOG.md for 0.1.0 {#task-f4258dc4-22aa-408d-a0b1-953f654e0623}
- DONE in 2021-01-26
- TODO in 2021-01-24

## CANCELLED How to preserve to sort order from STDIN {#task-b2c26218-5f21-4efd-afbd-ff6af57a358a}
- CANCELLED in 2021-01-24

  Don't preserve.

  The "blank" order, when remembering doesn't have any date on the input (usually a new profile), is to sort the input data, and it should be this way.
  Otherwise the sort order that comes from STDIN would have to be included when showing ranked results, and use the STDIN order as a tie breaker.

  Not only this would make the code much more complex, but also understanding the behaviour of the program harder.
- TODO in 2021-01-24

---

Keeping the sort order from STDIN, I would have to find a way to
merge STDIN with the existing profile.

## DONE Make sure to forward status code given by the provided command {#task-47589312-0a4d-46ac-9f13-45309471efeb}
- DONE in 2021-01-24

  Done in commit
  [6f5e467c6bb3f0369e4220be20ab1461cd9334ce](https://git.euandreh.xyz/remembering/commit/?id=6f5e467c6bb3f0369e4220be20ab1461cd9334ce).
- TODO in 2021-01-21

## CANCELLED Exclude ponctuation from troff markup {#task-03d0e24c-4baf-404f-ac8a-f8d972ec622e}
- CANCELLED in 2021-01-04

  Changed in commit
  [6748830b5944211104061c6af15612ec270ab5a1](https://git.euandreh.xyz/remembering/commit/?id=6748830b5944211104061c6af15612ec270ab5a1).
- TODO in 2021-01-21

---

Things like:
```troff
A phrase with the last word
.B bold.
```

The final period is marked as bold, too.

## DONE Add `-h` and `--help` flags {#task-8593b78a-a5ac-4b6c-b9cf-74c021d4a8e5}
- DONE in 2021-01-24

  Done in commit
  [b0f64583bf02f84cadcfad9b610d9c02ec6c4ec2](https://git.euandreh.xyz/remembering/commit/?id=b0f64583bf02f84cadcfad9b610d9c02ec6c4ec2).
- TODO in 2021-01-21

## DONE Optimize for large lists {#task-fec292ff-b9de-4d6c-b156-a9adc4771f35}
- DONE in 2021-01-26

  Instead of using `while read VAR < $FILE`, and looping through each record,
  the `$MERGED` and `$FILTERED` files are built differently.

  Building the `$MERGED` file exploits the fact that `sort -u -k2,2` picks the first
  entry it sees, regardless of what is in column 1, or other columns. With that,
  we feed the reversed (with `tac`) list to it, and `$MERGED` is built in a single
  pass of sort.

  Building the `$FILTERED` file is now done with a simple AWK script, that performs much
  better that a `while read VAR < $FILE` loop.

  Done in commit
  [000b74b1140f2ac41cb5d00a9070db735abdc9c4](https://git.euandreh.xyz/remembering/commit/?id=000b74b1140f2ac41cb5d00a9070db735abdc9c4).
- TODO in 2021-01-21

## DONE Add tests {#task-146fab37-e53b-489e-95d0-3fcdd4c3eaef}
- DONE in 2021-01-24

  Finished in commit
  [ee6bc4f2ce6da48f25a29931a178159e5801b5d9](https://git.euandreh.xyz/remembering/commit/?id=ee6bc4f2ce6da48f25a29931a178159e5801b5d9).
- TODO in 2021-01-21

---

On plain POSIX sh.

# Bugs

# Improvements

# Questions

# Resources

# Scratch