voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.5k stars 81 forks source link

Opening a file through vifm in a new tab or split #192

Closed maxigaz closed 4 years ago

maxigaz commented 4 years ago

Describe the bug

When I run :FloatermNew vifm and select a file, it always opens in the current buffer. I’ve been looking for an option to open it in a new tab or a split, but I haven’t found any.

In the screencast on the project page, I can see that the first file is opened in the current (empty) buffer and the second in a new tab. I haven’t been able to reproduce this yet.

By the way, vifm.vim provides additional commands like :TabVifm and :SplitVifm, which work fine for me, but this plugin doesn’t use floating windows.

To Reproduce

  1. Install vim-floaterm through vim-plug

  2. Use the minimal vimrc

    set nocompatible
    set hidden
    set termguicolors
    set runtimepath^=/path/to/vim-floaterm
    filetype plugin indent on
    syntax on
  3. Run :FloatermNew vifm

  4. Select any file

Enviroment

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.89. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

voldikss commented 4 years ago

Sorry but this won't be supported as it only brings a lot of complexities both for implementing and usage.

MartinVincent commented 2 years ago

Not exactly what the OP wants, but this might be of some help to some, as it permits opening a file in a new tab when in a floaterm popup:

To open each buffer in its own tabpage, add this to your vimrc: :au BufAdd,BufNewFile * nested tab sball

source: https://vim.fandom.com/wiki/Open_every_buffer_in_its_own_tabpage