branch: elpa/casual
commit 32cda8338d69c9bf27c29bd9f93442d6209395d8
Merge: 81c847a767 dfda243734
Author: Charles Choi <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #106 from 
kickingvegas/102-add-shell-command-to-tools-menu
    
    Add shell-command to Tools menu (`casual-editkit-tools-tmenu`)
---
 lisp/casual-editkit-utils.el       | 2 ++
 tests/test-casual-editkit-utils.el | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/lisp/casual-editkit-utils.el b/lisp/casual-editkit-utils.el
index 86fae373bd..e236b8b86f 100644
--- a/lisp/casual-editkit-utils.el
+++ b/lisp/casual-editkit-utils.el
@@ -578,6 +578,8 @@ Commands pertaining to invoking different tools can be 
accessed here."
   ["Tools"
    ["Shells & REPLs"
     ("s" "Shell" shell)
+    ("!" "Shell Command…" shell-command)
+    ("&" "Shell Command &…" async-shell-command)
     ("e" "Eshell" eshell)
     ("i" "IELM" ielm)
     ("t" "term" term)
diff --git a/tests/test-casual-editkit-utils.el 
b/tests/test-casual-editkit-utils.el
index 41c83f57ba..00ee75e4ee 100644
--- a/tests/test-casual-editkit-utils.el
+++ b/tests/test-casual-editkit-utils.el
@@ -489,6 +489,8 @@
     (casualt-editkit-setup tmpfile)
     (cl-letf (;;((symbol-function #') (lambda () t))
               (casualt-mock #'shell)
+              (casualt-mock #'shell-command)
+              (casualt-mock #'async-shell-command)
               (casualt-mock #'eshell)
               (casualt-mock #'ielm)
               (casualt-mock #'term)
@@ -507,6 +509,8 @@
 
       (let ((test-vectors
              '((:binding "s" :command shell)
+               (:binding "!" :command shell-command)
+               (:binding "&" :command async-shell-command)
                (:binding "e" :command eshell)
                (:binding "i" :command ielm)
                (:binding "t" :command term)

Reply via email to