options: add --minibar and -_ for activating basic state-information bar
parent
d31cc373de
commit
8f24ffaaef
|
@ -641,6 +641,7 @@ void usage(void)
|
||||||
print_opt("-z", "--suspendable", N_("Enable suspension"));
|
print_opt("-z", "--suspendable", N_("Enable suspension"));
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
print_opt("-%", "--stateflags", N_("Show some states on the title bar"));
|
print_opt("-%", "--stateflags", N_("Show some states on the title bar"));
|
||||||
|
print_opt("-_", "--minibar", N_("Show bar at bottom with some state info"));
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LIBMAGIC
|
#ifdef HAVE_LIBMAGIC
|
||||||
print_opt("-!", "--magic", N_("Also try magic to determine syntax"));
|
print_opt("-!", "--magic", N_("Also try magic to determine syntax"));
|
||||||
|
@ -1744,6 +1745,7 @@ int main(int argc, char **argv)
|
||||||
{"wordbounds", 0, NULL, 'W'},
|
{"wordbounds", 0, NULL, 'W'},
|
||||||
{"wordchars", 1, NULL, 'X'},
|
{"wordchars", 1, NULL, 'X'},
|
||||||
{"zap", 0, NULL, 'Z'},
|
{"zap", 0, NULL, 'Z'},
|
||||||
|
{"minibar", 0, NULL, '_'},
|
||||||
{"atblanks", 0, NULL, 'a'},
|
{"atblanks", 0, NULL, 'a'},
|
||||||
{"emptyline", 0, NULL, 'e'},
|
{"emptyline", 0, NULL, 'e'},
|
||||||
{"autoindent", 0, NULL, 'i'},
|
{"autoindent", 0, NULL, 'i'},
|
||||||
|
@ -1808,7 +1810,7 @@ int main(int argc, char **argv)
|
||||||
SET(RESTRICTED);
|
SET(RESTRICTED);
|
||||||
|
|
||||||
while ((optchr = getopt_long(argc, argv, "ABC:DEFGHIJ:KLMNOPQ:RST:UVWX:Y:Z"
|
while ((optchr = getopt_long(argc, argv, "ABC:DEFGHIJ:KLMNOPQ:RST:UVWX:Y:Z"
|
||||||
"abcdef:ghijklmno:pqr:s:tuvwxyz$%!", long_options, NULL)) != -1) {
|
"abcdef:ghijklmno:pqr:s:tuvwxyz$_%!", long_options, NULL)) != -1) {
|
||||||
switch (optchr) {
|
switch (optchr) {
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
case 'A':
|
case 'A':
|
||||||
|
@ -1928,6 +1930,9 @@ int main(int argc, char **argv)
|
||||||
case 'Z':
|
case 'Z':
|
||||||
SET(LET_THEM_ZAP);
|
SET(LET_THEM_ZAP);
|
||||||
break;
|
break;
|
||||||
|
case '_':
|
||||||
|
SET(MINIBAR);
|
||||||
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
SET(AT_BLANKS);
|
SET(AT_BLANKS);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -110,6 +110,7 @@ static const rcoption rcopts[] = {
|
||||||
{"jumpyscrolling", JUMPY_SCROLLING},
|
{"jumpyscrolling", JUMPY_SCROLLING},
|
||||||
{"locking", LOCKING},
|
{"locking", LOCKING},
|
||||||
{"matchbrackets", 0},
|
{"matchbrackets", 0},
|
||||||
|
{"minibar", MINIBAR},
|
||||||
{"noconvert", NO_CONVERT},
|
{"noconvert", NO_CONVERT},
|
||||||
{"showcursor", SHOW_CURSOR},
|
{"showcursor", SHOW_CURSOR},
|
||||||
{"smarthome", SMART_HOME},
|
{"smarthome", SMART_HOME},
|
||||||
|
|
Loading…
Reference in New Issue