Skip to content

sayanarijit/xclip.xplr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

copy.gif

Copy and paste with system clipboard using xclip.

Requirements

Installation

Install manually

  • Add the following line in ~/.config/xplr/init.lua

    local home = os.getenv("HOME")
    package.path = home
    .. "/.config/xplr/plugins/?/init.lua;"
    .. home
    .. "/.config/xplr/plugins/?.lua;"
    .. package.path
  • Clone the plugin

    mkdir -p ~/.config/xplr/plugins
    
    git clone https://github.com/sayanarijit/xclip.xplr ~/.config/xplr/plugins/xclip
  • Require the module in ~/.config/xplr/init.lua

    require("xclip").setup()
    
    -- Or
    
    require("xclip").setup{
      copy_command = "xclip-copyfile",
      copy_paths_command = "xclip -sel clip",
      paste_command = "xclip-pastefile",
      keep_selection = false,
    }
    
    -- Type `yy` to copy and `p` to paste whole files.
    -- Type `yp` to copy the paths of focused or selected files.
    -- Type `yP` to copy the parent directory path.

About

xclip based copy-paste integration for xplr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages