diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-10-24 17:30:21 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-10-24 17:30:21 +0200 |
commit | 2467e51afb6ad28b597a064317ec5f1077292813 (patch) | |
tree | 83bc0b0c7e9c8fb808c23adc433c92efced8859f /init.lua | |
parent | d93374d59ee9d43204bd3e21e3ec3fd16fe2de8a (diff) | |
download | vis-jump-2467e51afb6ad28b597a064317ec5f1077292813.tar.gz |
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -34,7 +34,7 @@ M.replace_URLs = function() -- local status, out, err = vis:pipe(vis.win.file, vis.win.selection.range, cmd) -- but it doesn't work local tmpfile = os.tmpname() - local cmd = getPath(debug.getinfo(2,'S').source) .. "abbrevURL.lua >" .. tmpfile + local cmd = "abbrevURL >" .. tmpfile local ahandle = io.popen(cmd, 'w') ahandle:write(vis.win.file.lines[line]) ahandle:close() @@ -68,7 +68,6 @@ vis:map(vis.modes.NORMAL, "gG", function() vis.win.selection:to(my_line, my_col) end, "Shorten URLs") vis:operator_new("gK", function(file, range, pos) - -- local cmd = getPath(debug.getinfo(2,'S').source) .. "abbrevURL.lua" local cmd = "abbrevURL" local status, out, err = vis:pipe(file, range, cmd) if not status then |