vim-dirvish
vim-dirvish copied to clipboard
dont use internal function for mapping
https://github.com/justinmk/vim-dirvish/blob/e4b3c4b62d0ddb2d24aa8f9fcf3820f6d6de4ebf/ftplugin/dirvish.vim#L20
https://github.com/bounceme/remote-viewer/blob/master/plugin/remotedir.vim#L88
It makes it simpler to have :Dirvish used there for the external scripts like the one above ^
Is that going to work for a and o?
so a|o is basically: split, make dir listing buffer without using cache?
what about: https://github.com/justinmk/vim-dirvish/blob/e4b3c4b62d0ddb2d24aa8f9fcf3820f6d6de4ebf/ftplugin/dirvish.vim#L23
changed to (something like):
execute 'nnoremap '.s:nowait.'<buffer><silent> o :<C-U>exe "split +edit\\" fnameescape(getline("."))<bar>wincmd p<cr>'
That won't work if multiple files are selected, specially if any fail to open.
I think adding hooks to override behavior would make more sense.