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).
This commit is contained in:
Marty Oehme 2023-12-04 08:31:01 +01:00
parent b712d456dd
commit 3bd67eab3d
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -172,6 +172,13 @@ command! fzfcd : set noquickview
\| if $FZF_PICK != '' \| if $FZF_PICK != ''
\| execute 'cd' fnameescape($FZF_PICK) \| execute 'cd' fnameescape($FZF_PICK)
\| endif \| endif
" show or hide the devicon prefix for files
command! toggleicons :
\| if &classify == ''
\| source $VIFM/favicons.vifm
\| else
\| set classify=''
\| endif
" }}} " }}}
" vifminfo {{{ " vifminfo {{{
" ------------------------------------------------------------------------------ " ------------------------------------------------------------------------------
@ -269,10 +276,7 @@ nnoremap tN :windo toggle number<cr>
nnoremap tR :windo toggle relativenumber<cr> nnoremap tR :windo toggle relativenumber<cr>
nnoremap te :execute ':tree! | echo ":tree"'<cr> nnoremap te :execute ':tree! | echo ":tree"'<cr>
nnoremap tt t nnoremap tt t
nnoremap ti :toggleicons<cr>
" zo shows hidden files, mimicking fold open in vim -- why does zc not close
" again?
nnoremap zc zm
" external commands " external commands
" extract currently selected file(s) " extract currently selected file(s)