aboutsummaryrefslogtreecommitdiff
path: root/tests/test-linear-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-23 23:16:24 -0500
committerCraig Jennings <c@cjennings.net>2026-05-23 23:16:24 -0500
commitf92619569be0c5bd0ca6af2257b1b2f8884b4191 (patch)
treeb789c6a7c9fd48690c38431faf4fdeb34c204ec4 /tests/test-linear-config.el
parent885fc0f93e8c66455363ae53f03b8529982b5c4d (diff)
downloaddotemacs-f92619569be0c5bd0ca6af2257b1b2f8884b4191.tar.gz
dotemacs-f92619569be0c5bd0ca6af2257b1b2f8884b4191.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/test-linear-config.el')
-rw-r--r--tests/test-linear-config.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/test-linear-config.el b/tests/test-linear-config.el
index 5a6e36a8..ece4cefe 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