From d23b95fc5f53cbec527d9915291bf4adadfef57f Mon Sep 17 00:00:00 2001 From: John Hamelink Date: Fri, 19 May 2023 16:00:17 +0100 Subject: [PATCH 1/3] Add unstable flag to transient --- justl.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/justl.el b/justl.el index f394efc..7fed6bf 100644 --- a/justl.el +++ b/justl.el @@ -479,9 +479,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) @@ -622,6 +625,7 @@ tweaked further by the user." ("-n" "Disable Highlight" "--no-highlight") ("-q" "Quiet" "--quiet") ("-v" "Verbose output" "--verbose") + ("-u" "Unstable" "--unstable") (justl--color) ] ["Actions" @@ -705,7 +709,7 @@ tweaked further by the user." (let* ((justfiles (justl--find-justfiles default-directory)) (entries (justl--get-recipies-with-desc justfiles))) (when (not (eq justl--list-command-exit-code 0) ) - (error "Just process exited with exit-code %s. Check justfile syntax" + (error "Just process exited with exit-code %s. Check justfile syntax" justl--list-command-exit-code)) (justl--save-line) (setq tabulated-list-entries (justl--tabulated-entries entries)) From 3abda3b9a279e6de2e227b141356db57c3139bce Mon Sep 17 00:00:00 2001 From: John Hamelink Date: Sun, 4 Jun 2023 19:12:10 +0100 Subject: [PATCH 2/3] Add test to show that !include directives are not detected as recipe lines --- test/justl-test.el | 3 +++ 1 file changed, 3 insertions(+) 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)) From 84bbbd594fb80ff2a89555281e2f72414b6ea38f Mon Sep 17 00:00:00 2001 From: John Hamelink Date: Sat, 10 Jun 2023 13:55:35 +0100 Subject: [PATCH 3/3] Update README.org --- README.org | 3 +++ 1 file changed, 3 insertions(+) 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