In the original repository and in our implementation so far, all keys that are not explicitly defined during a write operation are purged. So, if a user writes to pedal 0 without explicitly defining the values of pedal 1 and 2, the latter are purged.
We should fix this and add a separate del_key command.
E.g.
Situation before:
┌──────────────────────────────────────────────────────────────┐
│ Programmed Keys │
╞══════════════════════════════════════════════════════════════╡
│ 0 │ 1 │ 2 │
├──────────────────────────────────────────────────────────────┤
│ A │ B │ C │
└──────────────────────────────────────────────────────────────┘
In the [original repository](https://github.com/rgerganov/footswitch) and in our implementation so far, all keys that are not explicitly defined during a write operation are purged. So, if a user writes to pedal 0 without explicitly defining the values of pedal 1 and 2, the latter are purged.
We should fix this and add a separate `del_key` command.
E.g.
Situation before:
```bash
┌──────────────────────────────────────────────────────────────┐
│ Programmed Keys │
╞══════════════════════════════════════════════════════════════╡
│ 0 │ 1 │ 2 │
├──────────────────────────────────────────────────────────────┤
│ A │ B │ C │
└──────────────────────────────────────────────────────────────┘
```
Command:
```bash
sudo ./footswitch-rs write -c wr_key -p 0 -v E
```
Situation after:
```bash
┌──────────────────────────────────────────────────────────────┐
│ Programmed Keys │
╞══════════════════════════════════════════════════════════════╡
│ 0 │ 1 │ 2 │
├──────────────────────────────────────────────────────────────┤
│ E │ < None > │ < None > │
└──────────────────────────────────────────────────────────────┘
```
In the original repository and in our implementation so far, all keys that are not explicitly defined during a write operation are purged. So, if a user writes to pedal 0 without explicitly defining the values of pedal 1 and 2, the latter are purged.
We should fix this and add a separate
del_key
command.E.g.
Situation before:
Command:
Situation after: