Closed yatesco closed 11 months ago
It should work by adding :
before Fern . -drawer -reveal=% -toggle -width=35<CR>
. Tested locally, let me know if this does not work for you.
let g:which_key_map = {
\ ' ' : [':', ':'],
\ 'P' : [':Fern . -drawer -reveal=% -toggle -width=35<CR>', 'Fern'],
\
works fine - thank you! I'm not clear on when the ':' is needed or not...
Environment (please complete the following information):
OS: macOS (latest)
(Neo)Vim version:
vim-which-key version: 08cf520
Have you reproduced with a minimal vimrc: YES
nnoremap :WhichKey ''
nnoremap :WhichKey ','
set timeoutlen=500
" additional iterators for tabs nmap T] :tabnew
nmap [t :tabprevious
nmap ]t :tabnext
nnoremap <C-^>
" DO NOT map jk to ESC, use C-[ instead ;-)
let g:which_key_map = {
\ ' ' : [':', ':'],
\ 'P' : ['Fern . -drawer -reveal=% -toggle -width=35', 'Fern'],
\ }
call which_key#register('', "g:which_key_map")
then nothing happens.
I can confirm that
Fern . -drawer -reveal=% -toggle -width=35
in the command area opens Fern as I would expect.To Reproduce Steps to reproduce the behavior:
min.vim
:Start (neo)vim with command:
vim -u min.vim
Type
<space>P
See error
Expected behavior Fern should open correctly without the
<CR>
.Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.