aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-16 20:30:44 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-16 20:30:44 +0530
commit836325f0d4de370bf7c68da19f5eb85c7c1fdbae (patch)
tree9738e829ac5a8af3c445da32a64b8420536a3bd9
parentcc34b977daa438bf3026724c25f25cb524574f16 (diff)
downloadnnn-836325f0d4de370bf7c68da19f5eb85c7c1fdbae.tar.gz
A better case name
-rw-r--r--src/nnn.c8
-rw-r--r--src/nnn.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/nnn.c b/src/nnn.c
index b707384..5e23c6f 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3229,7 +3229,7 @@ nochange:
goto begin;
}
case SEL_ARCHIVE: // fallthrough
- case SEL_OPEN: // fallthrough
+ case SEL_OPENWITH: // fallthrough
case SEL_RENAME:
if (!ndents)
break; // fallthrough
@@ -3239,7 +3239,7 @@ nochange:
case SEL_ARCHIVE:
tmp = xreadline(dents[cur].name, "name: ");
break;
- case SEL_OPEN:
+ case SEL_OPENWITH:
tmp = xreadline(NULL, "open with: ");
break;
case SEL_NEW:
@@ -3260,7 +3260,7 @@ nochange:
}
/* Confirm if app is CLI or GUI */
- if (sel == SEL_OPEN) {
+ if (sel == SEL_OPENWITH) {
r = get_input("press 'c' for cli mode");
(r == 'c') ? (r = F_NORMAL) : (r = F_NOWAIT | F_NOTRACE);
}
@@ -3275,7 +3275,7 @@ nochange:
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
break;
- case SEL_OPEN:
+ case SEL_OPENWITH:
getprogarg(tmp, &dir); /* dir used as tmp var */
mkpath(path, dents[cur].name, newpath, PATH_MAX);
spawn(tmp, dir, newpath, path, r);
diff --git a/src/nnn.h b/src/nnn.h
index dd9416b..2e1a5a0 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -74,7 +74,7 @@ enum action {
SEL_MV,
SEL_RMMUL,
SEL_RM,
- SEL_OPEN,
+ SEL_OPENWITH,
SEL_NEW,
SEL_RENAME,
SEL_RENAMEALL,
@@ -199,7 +199,7 @@ static struct key bindings[] = {
/* Delete currently selected */
{ CONTROL('X'), SEL_RM },
/* Open in a custom application */
- { CONTROL('O'), SEL_OPEN },
+ { CONTROL('O'), SEL_OPENWITH },
/* Create a new file */
{ 'n', SEL_NEW },
/* Show rename prompt */