From 5883b1d6ad3428945123b61fcc2521cf290b3dc6 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Tue, 12 Jul 2022 11:27:08 +0200 Subject: [PATCH] tac suggestions for vis-repeat-line --- config/vis/visrc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index 0ab227c..2beeb10 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -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)