Skip to content

cschlaak/nvimopen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

Sometimes you have to work with Windows but still want to use your favorite editor, neovim. This little project will help you integrate neovim into your daily Windows Explorer usage, by allowing to double-click files and open them in a new neovim tab. Of course, this tool can also be used on Linux.

Getting Started

Installation

  1. Make sure Neovim and Neovide are installed
  2. Add the directories with your Neovim and Neovide binaries to your PATH variable
  3. Install Rust via rustup for example
  4. Clone the repo
    git clone https://github.com/cschlaak/nvimopen.git
  5. Build the project
    cargo build
  6. Copy the produced nvimopen binary to a place where you (and your PATH variable) can find it (optional)

Usage

  • Open a single file
    nvimopen file.txt
  • Open a file and jump to a line
    nvimopen file.txt:22
  • Open multiple files
    nvimopen file1.txt:22 file2.txt

Explorer Setup

  • open file properties and select default application (nvimopen.exe) under "Opens with"

    explorer file properties
  • your explorer will now show the corresponding icon on files that are opened with nvimopen, and thus in a new tab of your running neovim instance:

    explorer file properties

About

open file in a new nvim tab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages