630 current 2024-05-14 21:50:59 24.05.20240512.2057814 6.8.6-zen1 *
This commit is contained in:
parent
653c1c1e77
commit
c20dc11ab4
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ end
|
||||||
M.freeze = function()
|
M.freeze = function()
|
||||||
local path = "./._freeze.png"
|
local path = "./._freeze.png"
|
||||||
|
|
||||||
vim.cmd("<cmd>Freeze<CR>")
|
vim.cmd("Freeze")
|
||||||
|
|
||||||
-- Run the shell command 'wl-copy <path>' after 'Freeze' completes
|
-- Run the shell command 'wl-copy <path>' after 'Freeze' completes
|
||||||
vim.fn.system("wl-copy < " .. path)
|
vim.fn.system("wl-copy < " .. path)
|
||||||
|
|
@ -38,7 +38,7 @@ M.freeze_selection = function()
|
||||||
local end_line = vim.fn.getpos("'>")[2] -- line number of the end of selection
|
local end_line = vim.fn.getpos("'>")[2] -- line number of the end of selection
|
||||||
|
|
||||||
-- Execute the 'Freeze' command on the selected range
|
-- Execute the 'Freeze' command on the selected range
|
||||||
vim.cmd("<cmd>" .. start_line .. "," .. end_line .. "Freeze<CR>")
|
vim.cmd(start_line .. "," .. end_line .. "Freeze")
|
||||||
|
|
||||||
-- Run the shell command 'wl-copy <path>' after 'Freeze' completes
|
-- Run the shell command 'wl-copy <path>' after 'Freeze' completes
|
||||||
vim.fn.system("wl-copy < " .. path)
|
vim.fn.system("wl-copy < " .. path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue