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