From 0b3542bc1518d43b45165bd66c1fda03eeff8bcb Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 20 Nov 2026 16:20:30 -0600 Subject: feat(keys): move the terminal to C-; t and the test runner to C-; T I'm in the terminal far more than I run tests, so it gets the easier key. - The terminal commands move from C-; x to C-; t. - The test runner moves from C-; t to C-; T. - C-; x is now unbound. - The terminal prefix gains a which-key label. --- tests/test-test-runner.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/test-test-runner.el') diff --git a/tests/test-test-runner.el b/tests/test-test-runner.el index 6854b72e..c5416352 100644 --- a/tests/test-test-runner.el +++ b/tests/test-test-runner.el @@ -497,5 +497,19 @@ comparing against the directory with a trailing slash rejects it." (ert-delete-test 'test-testrunner-project-names-b)))) (test-testrunner-teardown)) +;;; bindings + +(ert-deftest test-testrunner-prefix-is-capital-t () + "Normal: the test runner map sits on C-; T with its commands under it." + (should (eq (keymap-lookup cj/custom-keymap "T") cj/testrunner-map)) + (should (eq (keymap-lookup cj/custom-keymap "T r") #'cj/test-run-smart)) + (should (eq (keymap-lookup cj/custom-keymap "T R") #'cj/test-run-all)) + (should (eq (keymap-lookup cj/custom-keymap "T .") #'cj/run-test-at-point)) + (should (eq (keymap-lookup cj/custom-keymap "T t") #'cj/test-toggle-mode))) + +(ert-deftest test-testrunner-lowercase-t-prefix-is-released () + "Boundary: the test runner no longer claims C-; t, which the terminal owns." + (should-not (eq (keymap-lookup cj/custom-keymap "t") cj/testrunner-map))) + (provide 'test-test-runner) ;;; test-test-runner.el ends here -- cgit v1.2.3