question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to open file in new tab from command line on Windows

See original GitHub issue

Thanks 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:open
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yatlicommented, Dec 22, 2020

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 (

0reactions
yatlicommented, Mar 29, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open a new tab in the running instance of Windows ...
You can the tool neWin, a CLI command that opens new Window(s) or Tab(s) on WSL Windows Terminal (or KDE Konsole on native...
Read more >
Opening a tab/pane in the same directory
Open a new tab with duplicateTab ... To open a new tab with the same path (and profile) as the currently active terminal,...
Read more >
How to open the Windows Terminal in new tab from File ...
Use this command: wt -w 0 -d folder. The parameter -w is defined as: -w,--window TEXT. Specify a terminal window to run the...
Read more >
How To Use The Tabbed Command Prompt In Windows 10
To open new tabs, either click on the + icon or select the File menu followed by New Prompt Window (although it says...
Read more >
CMD's "start" command should open new tab instead of ...
Example: start npm run startMongo && start npm run local. Expected: It should open two tabs of "Windows Terminal" running each command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found