tac suggestions for vis-repeat-line

This commit is contained in:
Felix Van der Jeugt 2022-07-12 11:27:08 +02:00
parent 6f10c06354
commit 5883b1d6ad
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -61,7 +61,7 @@ end)
-- Fuzzy search lines to copy them
vis:map(vis.modes.NORMAL, ";r", function()
local choice = io.popen('sk < ' .. vis.win.file.path):read()
local choice = io.popen('tac < ' .. vis.win.file.path .. ' | uniq | sk'):read()
if choice then
local line = vis.win.selection.line
table.insert(vis.win.file.lines, line + 1, choice)