ref: 87a1fa7314674d9d0b3763b0dc720ee44646b2ba
parent: 00e1b4c15f73aff327d590f4b7eb0f7f50700880
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Nov 5 19:03:40 EST 2020
implement Next tag command
--- a/mbox.c
+++ b/mbox.c
@@ -694,6 +694,7 @@
if(m != nil){fprint(mbox.addr, "%d", mesglineno(m, nil));
fprint(mbox.ctl, "dot=addr\n");
+ fprint(mbox.ctl, "show\n");
}
}
@@ -704,6 +705,15 @@
showlist();
}
+static void
+nextunread(char **, int)
+{+ fprint(mbox.ctl, "addr=dot\n");
+ fprint(mbox.addr, "/^[0-9]+\\/ *\t★.*");
+ fprint(mbox.ctl, "dot=addr\n");
+ fprint(mbox.ctl, "show\n");
+}
+
Fn mboxfn[] = { {"Put", mbflush}, {"Delmesg", delmesg},@@ -711,8 +721,8 @@
{"Mark", mbmarkmesg}, {"Del", quitall}, {"Redraw", redraw},-#ifdef NOTYET
{"Next", nextunread},+#ifdef NOTYET
{"Filter", filter}, {"Get", mbrefresh},#endif
--
⑨