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:
parent
b712d456dd
commit
3bd67eab3d
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue