Commit: c72570aeb69e1cbe918a5924bd5a0c919ca6e8d7
Parent: fda2b48c38f579f628a5a26f905ea550b14a7910
Author: Randy Palamar
Date: Mon, 27 May 2024 07:34:51 -0600
vis: use ag -Q for search command
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -62,14 +62,14 @@ vis.events.subscribe(vis.events.INIT, function()
end, "dump info to message window")
end)
-vis:command_register("ag", function(argv)
+vis:command_register("aq", function(argv)
for _, arg in ipairs(argv) do
- local cmd = "ag " .. arg
+ local cmd = "ag -Q " .. arg
vis:message(cmd .. ":")
local _, out = vis:pipe(cmd)
vis:message(tostring(out))
end
-end, "Search for each regex in argv with the_silver_searcher")
+end, "Search for each literal in argv with the_silver_searcher")
local function adjust_layout(wclose)
local ui = vis.ui