Repository navigation
Commit ecbc010
committed
Fix(config): "Keep view mode when switching notes" travels in config.toml
`keepViewModeAcrossNotes` has been in PORTABLE_PREF_KEYS since it shipped
(#543), which is the list of preferences that are supposed to travel
between machines in `~/.config/zennotes/config.toml`. It never did. The
desktop writer only emits keys that have a field mapping, the key had
none, so it was portable in name only: set it on one machine and the
file, and every other machine reading that file, never heard about it.
It is now `keep_view_mode_across_notes` under `[editor]`. A key missing
from an existing file keeps the local value when the file is read, so
nobody's current choice is reset; the option simply appears in the file
the next time the app rewrites it.
To keep this from happening to the next preference, a test now requires
every key in PORTABLE_PREF_KEYS to come back out of a freshly written
config. Without the mapping it fails and names the key.1 parent c048134 commit ecbc010
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
203 | 211 | | |
204 | 212 | | |
205 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| |||
0 commit comments