From cd53be5b71f8e240cdec1a1adaf4cfea5be73f74 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 21 Sep 2021 13:17:39 +0530 Subject: gnbug: Add edit sub-command. * gnbug (main): Add edit sub-command. * README.gmi (gnbug): Document it. --- gnbug | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnbug') diff --git a/gnbug b/gnbug index 9ec0e62..a617995 100755 --- a/gnbug +++ b/gnbug @@ -230,5 +230,12 @@ terminal." ")"))))))))) rcount (issues))))) + ((_ "edit" issue-number) + (unless (getenv "EDITOR") + (error "Please set the EDITOR environment variable to your favorite editor. For example, +export EDITOR=emacsclient")) + (invoke (getenv "EDITOR") + (issue-file (list-ref (issues) + (1- (string->number issue-number)))))))) (apply main (command-line)) -- cgit v1.2.3