From 4774cd5b150634a09415ac6cc63d99f777722c06 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 7 Sep 2020 22:02:47 +0200 Subject: [PATCH] vifm: Add shortcut to extract selected file Using `gx` the currently selected file(s?) will get extracted, automatically using the correct extraction program for the compression algorithm and creating a folder if necessary to avoid a file explosion in the current directory (all default features of the `atool` program which is a dependency) --- vifm/.config/vifm/vifmrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index 704fda8..177e4e4 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -491,6 +491,9 @@ nnoremap :cd %D " again? nnoremap zc zm +" extract currently selected file(s) +nnoremap gx :!atool -x %f + " }}} " Classify (Icons) {{{ " file types