mirror of https://github.com/djcb/mu.git
* rename the --separate option into --terminator (mu view)
This commit is contained in:
parent
adbab879a2
commit
de150bd9f7
|
@ -25,10 +25,9 @@ any).
|
|||
instead of displaying the full message, output a summary based upon the first
|
||||
lines of the message.
|
||||
|
||||
\fB\-\-separate\fR
|
||||
add an ascii \\014 (0x0c, or \fIform-feed\fR) between messages when displaying
|
||||
multiple messages.
|
||||
|
||||
\fB\-\-terminator\fR
|
||||
terminate messaages with a \\f (\fIform-feed\fR) characters when displaying
|
||||
them. This is useful when you want to further process them.
|
||||
|
||||
.SH BUGS
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "mu-contacts.h"
|
||||
#include "mu-runtime.h"
|
||||
|
||||
#define VIEW_SEPARATOR '\f' /* form-feed */
|
||||
#define VIEW_TERMINATOR '\f' /* form-feed */
|
||||
|
||||
|
||||
static void
|
||||
|
@ -196,8 +196,8 @@ mu_cmd_view (MuConfig *opts)
|
|||
if (rv != MU_EXITCODE_OK)
|
||||
break;
|
||||
/* add a separator between two messages? */
|
||||
if (opts->separate)
|
||||
g_print ("%c", VIEW_SEPARATOR);
|
||||
if (opts->terminator)
|
||||
g_print ("%c", VIEW_TERMINATOR);
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
|
@ -245,8 +245,8 @@ config_options_group_view (MuConfig *opts)
|
|||
GOptionEntry entries[] = {
|
||||
{"summary", 0, 0, G_OPTION_ARG_NONE, &opts->summary,
|
||||
"only show a short summary of the message (false)", NULL},
|
||||
{"separate", 0, 0, G_OPTION_ARG_NONE, &opts->separate,
|
||||
"separate messages with ascii-0x07 (form-feed)", NULL},
|
||||
{"terminator", 0, 0, G_OPTION_ARG_NONE, &opts->terminator,
|
||||
"terminate messages with ascii-0x07 (\\f, form-feed)", NULL},
|
||||
{NULL, 0, 0, 0, NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -108,9 +108,9 @@ struct _MuConfig {
|
|||
* messages */
|
||||
|
||||
/* options for view */
|
||||
gboolean separate; /* add separator between
|
||||
* multiple messages in mu
|
||||
* view */
|
||||
gboolean terminator; /* add separator \f between
|
||||
* multiple messages in mu
|
||||
* view */
|
||||
|
||||
/* output to a maildir with symlinks */
|
||||
char *linksdir; /* maildir to output symlinks */
|
||||
|
|
Loading…
Reference in New Issue