Skip to content

Commit

Permalink
Merge pull request #106 from kickingvegas/102-add-shell-command-to-to…
Browse files Browse the repository at this point in the history
…ols-menu

Add shell-command to Tools menu (`casual-editkit-tools-tmenu`)
  • Loading branch information
kickingvegas authored Dec 10, 2024
2 parents 81c847a + dfda243 commit 32cda83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lisp/casual-editkit-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions tests/test-casual-editkit-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 32cda83

Please sign in to comment.