commit 7dcedec32d126c09b98d35f104bf239f4105ea9f
parent dc015b15c4b3c47440f46310d7ed8c477cda5e91
Author: Russ Cox <rsc@golang.org>
Date: Fri, 10 Apr 2015 12:22:14 -0400
issue: add multiple-issue load operation like in acme Mail
Diffstat:
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/issue/acme.go b/issue/acme.go
@@ -30,6 +30,7 @@ func acmeMode() {
if flag.NArg() > 0 {
// TODO(rsc): Without -a flag, the query is conatenated into one query.
// Decide which behavior should be used, and use it consistently.
+ // TODO(rsc): Block this look from doing the multiline selection mode?
for _, arg := range flag.Args() {
if dummy.look(arg) {
continue
@@ -179,6 +180,18 @@ func cachedMilestones() []github.Milestone {
}
func (w *awin) look(text string) bool {
+ ids := readBulkIDs([]byte(text))
+ if len(ids) > 0 {
+ for _, id := range ids {
+ text := fmt.Sprint(id)
+ if w.show(text) != nil {
+ continue
+ }
+ w.newIssue(text, id)
+ }
+ return true
+ }
+
if text == "all" {
if w.show("all") != nil {
return true