diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-10 13:15:48 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-10 13:15:48 -0500 |
| commit | 873046581ec7b66e555997a98aa8a3cf07fee099 (patch) | |
| tree | 556884bed6ba300bc0720f42d2b084fa638d649b /docs/design/debug-profiling.org | |
| parent | 3658afb63c6c5a1a872e96a18f33edcbf8e9ba8b (diff) | |
| download | dotemacs-873046581ec7b66e555997a98aa8a3cf07fee099.tar.gz dotemacs-873046581ec7b66e555997a98aa8a3cf07fee099.zip | |
fix(dirvish): rename pw -> wp to clear quick-access key collision
Pressing `g' in dirvish (`dirvish-quick-access') failed with `Wrong type argument: command, (keymap (107 . transient:dirvish-quick-access::N))'. Transient auto-groups multi-character keys into nested prefix keymaps; when one entry's KEY is also the prefix of a longer entry's KEY, the shorter slot resolves to the auto-generated sub-prefix keymap rather than to the intended leaf command. The "wallpaper" entry on `pw' and the "project work" entry on `pwk' (added in 02e766d) collided. Rename `pw' to `wp'; `pwk' is now the only entry under the `pw'-prefix, so transient builds a clean leaf.
Add `tests/test-dirvish-config-quick-access.el' with five tests: four cover a small `test-dirvish-config--key-collisions' helper against synthetic inputs (collision detected, clean list, empty, single-entry), and one regression test asserts the live `dirvish-quick-access-entries' contains no shorter-key-is-prefix-of-longer-key pair.
Diffstat (limited to 'docs/design/debug-profiling.org')
0 files changed, 0 insertions, 0 deletions
