Skip to content

h3pei/copy-file-path.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copy-file-path.nvim

A Neovim plugin to copy file path to the clipboard.

copy-file-path-nvim-demo

Usage

Simply install copy-file-path.nvim with your favourite plugin manager (e.g. vim-plug or lazy.nvim) and you will be able to use the following commands.

Command Description
:CopyRelativeFilePath Copy relative file path to the clipboard.
:CopyAbsoluteFilePath Copy absolute file path to the clipboard.
:CopyRelativeFilePathFromHome Copy relative file path from $HOME to the clipboard.
:CopyFileName Copy just the file name to the clipboard.
:CopyFilePath Alias for CopyRelativeFilePath
:CopyAllRelativeFilePaths [separator] Copy all relative file paths to the clipboard. Default separator is space.
:CopyAllAbsoluteFilePaths [separator] Copy all absolute file paths to the clipboard. Default separator is space.
:CopyAllRelativeFilePathsFromHome [separator] Copy all relative file paths from $HOME to the clipboard. Default separator is space.
:CopyAllFileNames [separator] Copy all file names to the clipboard. Default separator is space.

For the CopyAll* commands, you can specify a separator:

  • , for comma separation
  • "\n" for newline separation
  • "\t" for tab separation
  • Any other string as a custom separator

About

A Neovim plugin to copy file path to the clipboard.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages