tamago324 / LeaderF-filer

📂 LeaderF file explorer
Apache License 2.0
39 stars 5 forks source link

add 'open_dir' for g:Lf_FilerAcceptDirSelectionCmd. #38

Closed hy172574895 closed 4 years ago

hy172574895 commented 4 years ago

Select dir but not quit buffer. We can also press \<C-l> to enter, but I think this is better.

PS: You should not add gif or jpg into your repo. It took me an hour to clone.

tamago324 commented 4 years ago

Thank you for your contribution 👍

PS: You should not add gif or jpg into your repo. It took me an hour to clone.

That's how long it's going to take! I didn't know that. Thank you very much. I'd like to move git and jpg to a different repository.

I think it would be solved if we mapped the following, but what do you think?

" normal
let g:Lf_FilerNormalMap = {
\   '<CR>': 'open_current',
\}

" insert
let g:Lf_FilerInsertMap = {
\   '<CR>': 'open_current',
\}
hy172574895 commented 4 years ago

I think it would be solved if we mapped the following, but what do you think?

" normal let g:Lf_FilerNormalMap = { \ '': 'open_current', }

" insert let g:Lf_FilerInsertMap = { \ '': 'open_current', }

oh! this is great too.

I added this:

let g:Lf_FilerNormalMap = {
\   '<CR>': 'open_current',
\   'o': 'open_current'
\}
let g:Lf_FilerInsertMap = {
\   '<CR>': 'open_current',
\}

there a litter flaw about \<c-x> and \<c-s> when we selecting a dir. But never mind, that solution is good enough for me.