diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-27 15:36:20 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-27 15:36:20 -0500 |
| commit | 4d159e7d1ab5b85892eee81e596d95a5a55855e8 (patch) | |
| tree | 02208e83bd0da0c63ac21a9de4b8d83cfa92fc13 /tests/test-pearl-format.el | |
| parent | a2a155c785cdf43c971b88db174c33ac1e867da3 (diff) | |
| download | pearl-4d159e7d1ab5b85892eee81e596d95a5a55855e8.tar.gz pearl-4d159e7d1ab5b85892eee81e596d95a5a55855e8.zip | |
feat(keys): add pearl-mode and complete the command keymap
Pearl is now drivable entirely from the keyboard. pearl-mode turns on automatically in any buffer Pearl renders, detected by the #+LINEAR-SOURCE header on org-mode-hook, and binds the command map under pearl-keymap-prefix (default "C-; L"), so the keys are live without any global setup.
I filled out pearl-prefix-map so every day-to-day command is reachable. The hot-path commands bind directly under the prefix (list, refresh view, refresh issue, save, edit description, new comment). The rest sit in category sub-maps (fetch, edit, new, delete, url). The common ones appear in both places, so edit-description is the direct d and also e d. Delete moved from d to k so d is the direct edit key, and the old save sub-map is gone now that save is the direct s and S.
The org-mode-hook is registered at load rather than through an autoload cookie. An autoloaded hook would fire before pearl loaded, calling a void function, and would pull the whole package into every org buffer the user opens. Freshly fetched buffers also enable the mode directly in the writer.
Diffstat (limited to 'tests/test-pearl-format.el')
0 files changed, 0 insertions, 0 deletions
