diff --git a/README.org b/README.org index 33bb512..964ab4f 100644 --- a/README.org +++ b/README.org @@ -75,6 +75,9 @@ W => open eshell without executing * Customize +- Because the help popup is built with transient, you can [[https://www.gnu.org/software/emacs//manual/html_node/transient/Saving-Values.html][set and save + your choices]] the same way you would with any other transient + dialog. - By default, justl searches the executable named *just*, you can change the /justl-executable/ variable to set any explicit path. - You can also control the width of the RECIPE column in the justl diff --git a/justl.el b/justl.el index 26815f4..f97863c 100644 --- a/justl.el +++ b/justl.el @@ -484,9 +484,12 @@ and output of process." (defun justl--get-recipies-with-desc (justfile) "Return all the recipies in JUSTFILE with description." - (let* ((recipe-status (justl--exec-to-string-with-exit-code - (format "%s --justfile=%s --list --unsorted" - justl-executable justfile))) + (let* ((t-args (transient-args 'justl-help-popup)) + (recipe-status (justl--exec-to-string-with-exit-code + (format "%s %s --justfile=%s --list --unsorted" + justl-executable + (string-join t-args " ") + justfile))) (justl-status (nth 0 recipe-status)) (recipe-lines (split-string (nth 1 recipe-status) @@ -627,6 +630,7 @@ tweaked further by the user." ("-n" "Disable Highlight" "--no-highlight") ("-q" "Quiet" "--quiet") ("-v" "Verbose output" "--verbose") + ("-u" "Unstable" "--unstable") (justl--color) ] ["Actions" diff --git a/test/justl-test.el b/test/justl-test.el index abb4098..47c29e0 100644 --- a/test/justl-test.el +++ b/test/justl-test.el @@ -70,6 +70,9 @@ (should (equal (justl--is-recipe-line-p "# Terraform plan") nil)) + (should (equal + (justl--is-recipe-line-p "!include lorem.just") + nil)) (should (equal (justl--is-recipe-line-p "push version: (build-cmd version)") t))