From f92619569be0c5bd0ca6af2257b1b2f8884b4191 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 23 May 2026 23:16:24 -0500 Subject: 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. --- tests/test-linear-config.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3