From 3bd67eab3de50fcbc881cef14c2b17591802f767 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 4 Dec 2023 08:31:01 +0100 Subject: [PATCH] vifm: Add toggle icon mapping 'ti' Added mapping to toggle classify prefix icons on or off quickly using my semi-established 'toggle' submenu with the mapping `ti` (for toggle icon). --- terminal/.config/vifm/vifmrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/terminal/.config/vifm/vifmrc b/terminal/.config/vifm/vifmrc index 7c51e5a..b69eb05 100644 --- a/terminal/.config/vifm/vifmrc +++ b/terminal/.config/vifm/vifmrc @@ -172,6 +172,13 @@ command! fzfcd : set noquickview \| if $FZF_PICK != '' \| execute 'cd' fnameescape($FZF_PICK) \| endif +" show or hide the devicon prefix for files +command! toggleicons : + \| if &classify == '' + \| source $VIFM/favicons.vifm + \| else + \| set classify='' + \| endif " }}} " vifminfo {{{ " ------------------------------------------------------------------------------ @@ -269,10 +276,7 @@ nnoremap tN :windo toggle number nnoremap tR :windo toggle relativenumber nnoremap te :execute ':tree! | echo ":tree"' nnoremap tt t - -" zo shows hidden files, mimicking fold open in vim -- why does zc not close -" again? -nnoremap zc zm +nnoremap ti :toggleicons " external commands " extract currently selected file(s)