nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 33cec52d4e9fca026c38517cb952bed59743217c
parent c27f58555e3d11527a1d66f69e3be7073367d4eb
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 25 Apr 2018 21:56:13 +0530

Reload contents on archive create, extract

Diffstat:
Mnnn.c | 24+++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/nnn.c b/nnn.c @@ -2936,6 +2936,19 @@ nochange: printmsg(newpath); goto nochange; } + + /* In case of successful archive extract, reload contents */ + if (sel == SEL_EXTRACT) { + /* Continue in navigate-as-you-type mode, if enabled */ + if (cfg.filtermode) + presel = FILTER; + + /* Save current */ + copycurname(); + + /* Repopulate as directory content may have changed */ + goto begin; + } } break; case SEL_DFB: @@ -3108,7 +3121,16 @@ nochange: } spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL); - continue; + + /* Continue in navigate-as-you-type mode, if enabled */ + if (cfg.filtermode) + presel = FILTER; + + /* Save current */ + copycurname(); + + /* Repopulate as directory content may have changed */ + goto begin; } /* Open the descriptor to currently open directory */