junegunn / fzf.vim

fzf :heart: vim
MIT License
9.59k stars 582 forks source link

change File/GFiles/... opening defaut to "open in tab" #1367

Open nkh opened 2 years ago

nkh commented 2 years ago

I read this in the documentation: Most commands support CTRL-T / CTRL-X / CTRL-V key bindings to open in a new tab, a new split, or in a new vertical split

I use tabs and would like the default behavior, when pressing return, to open in a new tab, and keep the default behavior for CTRL-X and CTRL-V.

is there a way to override the default behavior?

phinjensen commented 2 years ago

Modifying g:fzf-action can do that too:

let g:fzf_action = {
      \ 'enter': 'tab split',
      \ 'ctrl-t': 'tab split',
      \ 'ctrl-s': 'split',
      \ 'ctrl-v': 'vsplit'
  \ }
nkh commented 2 years ago

thank @phinjensen

nkh commented 2 years ago

@phinjensen the idea was good but unfortunately that means that Tags also opens in a new tab, any more ideas?