Neovim wrapper for Windows Terminal
- nvim-wt-new
- Open a file in new nvim by opening new windows terminal
- nvim-wt-reuse
- Open a file in existing nvim on existing windows terminal
- nvim-wt-defx
- Open a file in new nvim by opening new windows terminal, then start Defx
- nvim-wt-diff
- Compare 2 files in new nvim by opening new windows terminal
- Neovim
- Windows Terminal
Setup windows terminal (wt.exe) to start nvim.exe. See example wt.exe configuration settings.json.
A path to wt.exe is embedded inside the scripts. - Phython
- pynvim
- Pipelist
Install pipelist64.exe (or pipelist.exe) in your PATH.
Convert these scripts into .exe files by the pyinstaller command. Then, place the .exe files in your "send to" folder or register to your shell context menu like gvim.
- Extreme redundancy on these 3 scripts.
Great Python programmers can make them one script with command line options. - No check of mulitple nvim.exe instances.
With the pynvim interface, these scripts can ping all nvim.exe instances to select your target nvim.exe.
For example, all nvim.exe found by the pipelist show a message "nvim-wt requests to open a file, hit regurn key to chose this nvim". - Long wait time for new Windows Terminal
Waiting for 3 seconds to ensure nvim.exe is running on new wt.exe... This is purely limitation of me don't know how to control processes from the Python. - User dependent path for wt.exe inside scripts wt.exe is called in users' "AppData" folder.
I switched my editor software from Vim to Neovim early 2020. Since then, I kept looking for a good GUI like gvim. After spending days to understand a concept of Neovim, why I can't find a good GUI, I realized that Neovim is designed for terminals. So I changed my quest for a great terminal program (not for great Neovim GUI). ...and "Bingo!", I found Neovim works great in windows terminal.
In the Windows Terminal, I can use my mouse with Neovim and I can use basic copy/cut/paste operations. Yes, those are all I was looking for.
I generated these scripts by patch-working flagments of codes I could find online. Because I'm a very poor Python programmer, I don't have any skillset to improve these programs.
If you find these useful, please folk and upgrade!! Then, let me know so to copy your improved vesion 😁
- These are free software scripts.
- Use these scrypts by your own risk, nobody takes any responsibilty of damages caused by using these scripts.
- Please kindly advise any misuse of somebody's outputs.