src/nnn.c | 8 ++++---- src/nnn.h | 4 ++-- diff --git a/src/nnn.c b/src/nnn.c index b707384918fa3380aaacffe586b4d68b07b50182..5e23c6fb986b38ffa124e3a95daf1d7f0384e256 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3229,7 +3229,7 @@ presel = FILTER; 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 @@ switch (sel) { 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 @@ goto 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 @@ } 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 dd9416b5bc884ae21756665b8beaa56011d9d12a..2e1a5a08cd33ff217bc5eacafa32fc60018ae927 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -74,7 +74,7 @@ SEL_CP, SEL_MV, SEL_RMMUL, SEL_RM, - SEL_OPEN, + SEL_OPENWITH, SEL_NEW, SEL_RENAME, SEL_RENAMEALL, @@ -199,7 +199,7 @@ { 'X', SEL_RMMUL }, /* 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 */