Skip to content

sayanarijit/wl-clipboard.xplr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

copy.gif

Copy and paste with system clipboard using wl-clipboard.

Requirements

Installation

Install using xpm.xplr

require("xpm").setup({
  ---
  { name = "sayanarijit/wl-clipboard.xplr" }
  ---
})

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/wl-clipboard.xplr ~/.config/xplr/plugins/wl-clipboard
  • Require the module in ~/.config/xplr/init.lua

    require("wl-clipboard").setup()
    
    -- Or
    
    require("wl-clipboard").setup{
      copy_command = "wl-copy -t text/uri-list",
      paste_command = "wl-paste",
      keep_selection = false,
    }
    
    -- Type `yy` to copy and `p` to paste files.

About

Copy and paste with system clipboard using wl-clipboard

Topics

Resources

License

Stars

Watchers

Forks

Languages