jeetsukumaran / vim-filebeagle

A VINE-spired (Vim Is Not Emacs) file system explorer.
162 stars 14 forks source link

add C-t mapping #52

Closed mckellyln closed 6 years ago

mckellyln commented 6 years ago

Hi, Thank you for filebeagle, it is great. Is it possible, as a configuration option, to add to filebeagle for opening file in a new tab (just like 't') ? But do this mapping only in filebeagle windows ? Or would I have to edit the .vim plugin/autoload ? thank you, mark

jeetsukumaran commented 6 years ago

Isn't this already provided? I.e., t on a file entry opens it in a new tab?

mckellyln commented 6 years ago

Hi. Yes 't' works - but I have other plugins that open things in tabs with C-t and so I wanted to do the same. I can go thru the plugin code to add this, but I was wondering if there was a configuration change I could make in my .vimrc to get this more simply. thx again

jeetsukumaran commented 6 years ago

Short of writing a whole bunch of logic to support configurable key maps, you might want to consider setting let g:filebeagle_buffer_legacy_key_maps=1 in your .vimrc. This will give you the C-T mapping you want, but comes at the cost of overturning the entire key mapping scheme with it (basically, it more or less follows NERDTree rather than more or less Ctrl-P).

mckellyln commented 6 years ago

I decided to add this line to the plugin:

            nmap <buffer> <silent> <C-t> <Plug>(FileBeagleBufferTabVisitTarget)

I'll just have to merge it into updates manually Thx again for your work.

mckellyln commented 6 years ago

Closing