* rename the --separate option into --terminator (mu view)

This commit is contained in:
Dirk-Jan C. Binnema 2011-07-07 22:59:44 +03:00
parent adbab879a2
commit de150bd9f7
4 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -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;

View File

@ -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}
};

View File

@ -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 */