complete -c nnn -s u -d 'use selection (no prompt)'
complete -c nnn -s U -d 'show user and group'
complete -c nnn -s V -d 'show program version and exit'
-complete -c nnn -s w -d 'hardware cursor mode'
complete -c nnn -s x -d 'notis, sel to system clipboard, xterm title'
complete -c nnn -s h -d 'show program help'
'(-u)-u[use selection (no prompt)]'
'(-U)-U[show user and group]'
'(-V)-V[show program version and exit]'
- '(-w)-C[hardware cursor mode]'
'(-x)-x[notis, sel to system clipboard, xterm title]'
'(-h)-h[show program help]'
'*:filename:_files'
.Nd The unorthodox terminal file manager.
.Sh SYNOPSIS
.Nm
-.Op Ar -aAcCdDeEfgHJKnQrRSuUVwxh
+.Op Ar -aAcCdDeEfgHJKnQrRSuUVxh
.Op Ar -b key
.Op Ar -F val
.Op Ar -l val
.Fl V
show version and exit
.Pp
-.Fl w
- place hardware cursor on hovered entry
-.Pp
.Fl x
show notis on selection cp, mv, rm completion
copy path to system clipboard on select
while ((opt = (env_opts_id > 0
? env_opts[--env_opts_id]
-- : getopt(argc, argv, "aAb:cCdDeEfF:gHiJKl:nop:P:QrRs:St:T:uUVwxh"))) != -1) {
-+ : getopt(argc, argv, "aAb:cCdDeEfF:gGHiJKl:nop:P:QrRs:St:T:uUVwxh"))) != -1) {
+- : getopt(argc, argv, "aAb:cCdDeEfF:gHiJKl:nop:P:QrRs:St:T:uUVxh"))) != -1) {
++ : getopt(argc, argv, "aAb:cCdDeEfF:gGHiJKl:nop:P:QrRs:St:T:uUVxh"))) != -1) {
switch (opt) {
#ifndef NOFIFO
case 'a':
while ((opt = (env_opts_id > 0
? env_opts[--env_opts_id]
-- : getopt(argc, argv, "aAb:cCdDeEfF:gHiJKl:nop:P:QrRs:St:T:uUVwxh"))) != -1) {
-+ : getopt(argc, argv, "aAb:cCdDeEfF:gGHiJKl:nop:P:QrRs:St:T:uUVwxh"))) != -1) {
+- : getopt(argc, argv, "aAb:cCdDeEfF:gHiJKl:nop:P:QrRs:St:T:uUVxh"))) != -1) {
++ : getopt(argc, argv, "aAb:cCdDeEfF:gGHiJKl:nop:P:QrRs:St:T:uUVxh"))) != -1) {
switch (opt) {
#ifndef NOFIFO
case 'a':
uint_t fileinfo : 1; /* Show file information on hover */
uint_t nonavopen : 1; /* Open file on right arrow or `l` */
uint_t autoselect : 1; /* Auto-select dir in type-to-nav mode */
- uint_t cursormode : 1; /* Move hardware cursor with selection */
+ uint_t reserved2 : 1;
uint_t useeditor : 1; /* Use VISUAL to open text files */
- uint_t reserved2 : 3;
+ uint_t reserved3 : 3;
uint_t regex : 1; /* Use regex filters */
uint_t x11 : 1; /* Copy to system clipboard, show notis, xterm title */
uint_t timetype : 2; /* Time sort type (0: access, 1: change, 2: modification) */
0, /* fileinfo */
0, /* nonavopen */
1, /* autoselect */
- 0, /* cursormode */
- 0, /* useeditor */
0, /* reserved2 */
+ 0, /* useeditor */
+ 0, /* reserved3 */
0, /* regex */
0, /* x11 */
2, /* timetype (T_MOD) */
}
attroff(COLOR_PAIR(cfg.curctx + 1));
-
- if (cfg.cursormode)
- tocursor();
+ /* Plase HW cursor on current for Braille systems */
+ tocursor();
}
static inline void markhovered(void)
" -U show user and group\n"
#endif
" -V show version\n"
- " -w place HW cursor on hovered\n"
#ifndef NOX11
" -x notis, selection sync, xterm title\n"
#endif
while ((opt = (env_opts_id > 0
? env_opts[--env_opts_id]
- : getopt(argc, argv, "aAb:cCdDeEfF:gHiJKl:nop:P:QrRs:St:T:uUVwxh"))) != -1) {
+ : getopt(argc, argv, "aAb:cCdDeEfF:gHiJKl:nop:P:QrRs:St:T:uUVxh"))) != -1) {
switch (opt) {
#ifndef NOFIFO
case 'a':
case 'V':
dprintf(STDOUT_FILENO, "%s\n", VERSION);
return EXIT_SUCCESS;
- case 'w':
- cfg.cursormode = 1;
- break;
case 'x':
cfg.x11 = 1;
break;