vifm: Improve prefix suggestions display

If given <nop> as prefix mapping, the suggestions box shows *all*
mappings that exist in the program. By removing the <nop> we make the
key do its usual action but at the same time restrict the suggestions
being displayed to those actually following the prefix.
This commit is contained in:
Marty Oehme 2023-03-19 14:53:35 +01:00
parent 0612c74b91
commit e464c5000a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -205,8 +205,8 @@ nmap Q :q<cr>
" Sample mappings
" for now they use space for my leader key - so we can't switch panels with
" space, use tab for that
nnoremap <space> <nop>
nnoremap <space><space> t
"nnoremap <space> <nop>
nnoremap <space><space> <space>
" quick find mirroring my vim filefinder
nnoremap <space>f :FZFfind<cr>
@ -230,13 +230,10 @@ nnoremap gb :file &<cr>l
" yank current directory path into the clipboard
" clip is universal clipper from `sh` module
nnoremap yd :!echo -n %d | clip %i<cr>
" yank current file path into the clipboard
nnoremap yf :!echo -n %c:p | clip %i<cr>
" yank current filename without path into the clipboard
nnoremap yt :!echo -n %c | clip %i<cr>
" yank root of current file's name into the clipboard
nnoremap yr :!echo -n %c:r | clip %i<cr>
@ -268,7 +265,6 @@ nnoremap tr :toggle relativenumber<cr>
nnoremap tN :windo toggle number<cr>
nnoremap tR :windo toggle relativenumber<cr>
nnoremap te :execute ':tree! | echo ":tree"'<cr>
nnoremap t <nop>
nnoremap tt t
" zo shows hidden files, mimicking fold open in vim -- why does zc not close