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. --- modules/test-runner.el | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'modules/test-runner.el') diff --git a/modules/test-runner.el b/modules/test-runner.el index 6cb35275..54d56974 100644 --- a/modules/test-runner.el +++ b/modules/test-runner.el @@ -6,7 +6,7 @@ ;; Layer: 2 (Core UX). ;; Category: C/L. ;; Load shape: eager. -;; Eager reason: registers the C-; t test runner entry point and state. +;; Eager reason: registers the C-; T test runner entry point and state. ;; Top-level side effects: defines and registers cj/test-map. ;; Runtime requires: ert, cl-lib, keybindings, system-lib. ;; Direct test load: yes. @@ -15,7 +15,7 @@ ;; Test roots come from Projectile projects, falling back to the config's tests ;; directory, and test files are discovered by the test-*.el convention. ;; -;; Commands under C-; t load tests, run all/focused tests, run the test at point, +;; Commands under C-; T load tests, run all/focused tests, run the test at point, ;; and manage the per-project focus list. ;;; Code: @@ -490,21 +490,21 @@ Returns the number of tests deleted." "v" #'cj/test-view-focused "t" #'cj/test-toggle-mode) -(cj/register-prefix-map "t" cj/testrunner-map) +(cj/register-prefix-map "T" cj/testrunner-map) ;; which-key integration (with-eval-after-load 'which-key (which-key-add-key-based-replacements - "C-; t" "test runner menu" - "C-; t L" "load all tests" - "C-; t R" "run all tests" - "C-; t r" "run smart" - "C-; t ." "run test at point" - "C-; t a" "add to focus" - "C-; t b" "add buffer to focus" - "C-; t c" "clear focus" - "C-; t v" "view focused" - "C-; t t" "toggle mode")) + "C-; T" "test runner menu" + "C-; T L" "load all tests" + "C-; T R" "run all tests" + "C-; T r" "run smart" + "C-; T ." "run test at point" + "C-; T a" "add to focus" + "C-; T b" "add buffer to focus" + "C-; T c" "clear focus" + "C-; T v" "view focused" + "C-; T t" "toggle mode")) (provide 'test-runner) ;;; test-runner.el ends here -- cgit v1.2.3