summaryrefslogtreecommitdiff
path: root/gnbug
diff options
context:
space:
mode:
Diffstat (limited to 'gnbug')
-rwxr-xr-xgnbug7
1 files changed, 7 insertions, 0 deletions
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))