mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 13:26:37 +00:00
Disable e on explorer mode
This commit is contained in:
parent
88306e2d9c
commit
6fc8f63c0d
|
@ -202,7 +202,7 @@ index 6b0c1dc5..2aac557b 100644
|
||||||
case SEL_EDIT:
|
case SEL_EDIT:
|
||||||
+ if (g_state.previewer)
|
+ if (g_state.previewer)
|
||||||
+ notify_fifo(FALSE, TRUE);
|
+ notify_fifo(FALSE, TRUE);
|
||||||
if (!g_state.picker)
|
if (!(g_state.picker || g_state.fifomode))
|
||||||
spawn(editor, newpath, NULL, NULL, F_CLI);
|
spawn(editor, newpath, NULL, NULL, F_CLI);
|
||||||
+ if (g_state.previewer) {
|
+ if (g_state.previewer) {
|
||||||
+ pkey = previewkey;
|
+ pkey = previewkey;
|
||||||
|
|
|
@ -354,7 +354,7 @@ typedef struct {
|
||||||
uint_t dircolor : 1; /* Current status of dir color */
|
uint_t dircolor : 1; /* Current status of dir color */
|
||||||
uint_t dirctx : 1; /* Show dirs in context color */
|
uint_t dirctx : 1; /* Show dirs in context color */
|
||||||
uint_t duinit : 1; /* Initialize disk usage */
|
uint_t duinit : 1; /* Initialize disk usage */
|
||||||
uint_t fifomode : 1; /* FIFO notify mode: 0: preview, 1: explore */
|
uint_t fifomode : 1; /* FIFO notify mode: 0: preview, 1: explorer */
|
||||||
uint_t forcequit : 1; /* Do not prompt on quit */
|
uint_t forcequit : 1; /* Do not prompt on quit */
|
||||||
uint_t initfile : 1; /* Positional arg is a file */
|
uint_t initfile : 1; /* Positional arg is a file */
|
||||||
uint_t interrupt : 1; /* Program received an interrupt */
|
uint_t interrupt : 1; /* Program received an interrupt */
|
||||||
|
@ -7338,7 +7338,7 @@ nochange:
|
||||||
copycurname();
|
copycurname();
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case SEL_EDIT:
|
case SEL_EDIT:
|
||||||
if (!g_state.picker)
|
if (!(g_state.picker || g_state.fifomode))
|
||||||
spawn(editor, newpath, NULL, NULL, F_CLI);
|
spawn(editor, newpath, NULL, NULL, F_CLI);
|
||||||
continue;
|
continue;
|
||||||
default: /* SEL_LOCK */
|
default: /* SEL_LOCK */
|
||||||
|
|
Loading…
Reference in a new issue