How to open file in new tab from command line on Windows
See original GitHub issueThanks for this amazing frontend for Neovim!
I try to open one file using fvim in a new tab from the command line on Windows. In GVim, it has a --remote-tab-silent
option to achieve. Native neovim did not support that (https://github.com/neovim/neovim/issues/11493). On Mac and Linux, it can be achieved using the neovim-remote
which did not work well on Windows (https://github.com/mhinz/neovim-remote/issues/133). I saw fvim has already implemented the --nvr
parameter cross-platform. But due to my limited knowledge, I didn’t know how to do that in command line.
I tried to follow https://github.com/equalsraf/neovim-qt/issues/610#issue-523353515 by running below command in CMD:
nvim --listen 127.0.0.1:10710 --headless "test.txt" | fvim --nvr 127.0.0.1:10710
But I have to open a CMD and keep it open which is kind of urgly. Could you give some guides on how to achieve the similar behavior of Gvim --remote-tab-silient
using fvim? Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Oh I think I get what you mean now. You want to send an edit command to a live session… Currently this is not supported. I’ll consider adding this feature.
Alternatively just drag a file to the window (
I also got this problem when I wanted to set up inverse search for latex files. I really wish
nvr
would solve the problem though – the only missing part is that you cannot run nvr outside the neovim process scope.To work around that, FVim will have to set a global environment variable so that an “external” nvr picks it up.
Note to self:
echo v:servername