A simple automation tool that utilize Neovim Remote to find a running vim instance in the currently active Tmux tab and send file there.
Neovim-remote is great for it's purpose: opening file from the terminal into a vim window. But it doesn't have the capability to detect currently active neovim socket. This tool solve that problem by finding the first running neovim socket in the tmux window.
run the following command
python3 -m pip install git+https://github.com/NikoKS/auto-nvr.git
Alternatively
If you want to install it in a virtual environment to keep a clean global packages, use the install.sh
and uninstall.sh
script to install and uninstall. Note that Poetry is needed to use this script.
don't forget to add ~/.local/bin to your path
The command needs to be run inside a tmux session
$ vir filename
This tool is originally to be used with kitty terminal splits. I mainly use tmux now and no longger use neovim remote with kitty. The original tool can still be found in branch kitty