dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 99578a0e0a6624687cff5d8c05aaa67fa2ce5ab3
Parent: f16c8aca4f7b7d707af084f7a20b4198ec85ad48
Author: Randy Palamar
Date:   Wed, 23 Apr 2025 09:48:51 -0600

vis: add cp command for easier copying to clipboard

Diffstat:
M.config/vis/visrc.lua | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -87,6 +87,11 @@ vis:command_register("ag", function(argv) gf.setup_iterators_from_text(outstr) end, "Search for each literal in argv with the_silver_searcher") +vis:command_register("cp", function(argv) + local text = vis.win.file:content(vis.win.selection.range) + vis:pipe(text, "vis-clipboard --copy") +end, "Copy Selection to Clipboard") + vis.events.subscribe(vis.events.WIN_OPEN, function(win) win.options = { colorcolumn = 100,