diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-23 23:16:24 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-23 23:16:24 -0500 |
| commit | 132be4be98716b55d6be406ad782b84c784ceba7 (patch) | |
| tree | e3930e05a06dbcf82b919661674a77c9a1559d66 /tests | |
| parent | fb5cc4d5a026ec17fb89dfb26ac40ec1a28f315d (diff) | |
| download | dotemacs-132be4be98716b55d6be406ad782b84c784ceba7.tar.gz dotemacs-132be4be98716b55d6be406ad782b84c784ceba7.zip | |
feat(linear): re-enable linear-config and wire the reworked command surface
linear-emacs grew a lot of new commands in its rework: filtered lists, saved queries, Custom Views, open-in-browser, comments, delete, and set-assignee/state/priority/labels on the issue at point. The config still listed and bound only the original seven, and the init.el require was commented out while the package was in flux.
I re-enabled the require, expanded :commands to all 25 autoloaded commands, and rebuilt the C-; L keymap around them: lists and views up top, an o/r/D set for the issue at point, sync on s/S/u/U, and a C-; L e sub-prefix for editing the issue's fields. The lazy authinfo key-load advice and the data/linear.org path carry over unchanged.
I verified the dependency symbols still exist before wiring, but the live connection check (C-; L ?) is still yours to run.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-linear-config.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test-linear-config.el b/tests/test-linear-config.el index 5a6e36a85..ece4cefea 100644 --- a/tests/test-linear-config.el +++ b/tests/test-linear-config.el @@ -69,7 +69,18 @@ request — falsely reported \"not set\" on a fresh session." (should (keymapp cj/linear-keymap)) (should (eq (keymap-lookup (current-global-map) "C-; L") cj/linear-keymap)) (should (eq (keymap-lookup cj/linear-keymap "l") #'linear-emacs-list-issues)) - (should (eq (keymap-lookup cj/linear-keymap "n") #'linear-emacs-new-issue))) + (should (eq (keymap-lookup cj/linear-keymap "n") #'linear-emacs-new-issue)) + ;; commands added in the package rework + (should (eq (keymap-lookup cj/linear-keymap "f") #'linear-emacs-list-issues-filtered)) + (should (eq (keymap-lookup cj/linear-keymap "v") #'linear-emacs-run-view)) + (should (eq (keymap-lookup cj/linear-keymap "o") #'linear-emacs-open-current-issue))) + +(ert-deftest test-linear-edit-submap-bound () + "Smoke: C-; L e holds the edit-issue sub-keymap with field commands." + (should (keymapp cj/linear-edit-keymap)) + (should (eq (keymap-lookup cj/linear-keymap "e") cj/linear-edit-keymap)) + (should (eq (keymap-lookup cj/linear-edit-keymap "a") #'linear-emacs-set-assignee)) + (should (eq (keymap-lookup cj/linear-edit-keymap "s") #'linear-emacs-set-state))) (provide 'test-linear-config) ;;; test-linear-config.el ends here |
