No completion yet for args.
CVK6T5OZZPWGWZ4E2QQZKCOWZPC25EDWXZWLLTPBDDRGEQGADKNAC
AUE2Y6HE5AIZVFO6EGLYNXKBDXGXJKDURTA4CFAEX6ZWRZKUCMUQC
5O356ZWY6DCM3Y6VFZPYQY5AIHIN6JGZDGLXU5DL6LWTFNDDFPFQC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
4P4AGIIG55VT6Y3JZVZPB756H4N2C6NTVMWCOOGCOSY63K4ILBFAC
MR6AZIQOKRRF4FQX2KDDU7GLZHFRF7UPBDGNTCQYNCYGGKWJJ42AC
7RVHGLQKGOPWHUXZP2Z7ZK4TCJBEBTUUGXXBJPSIXF3M337YZJ2QC
J3YDSRMTV44CILD443Y36LHYII2ZI43DFAWJZG6PERP35DEVYXRQC
local candidates = initial_candidates()
if Display_settings.palette == '' then
return candidates
elseif Display_settings.palette:sub(1,1) == '/' then
return {}
else
local results = filter_candidates(candidates, Display_settings.palette)
append(results, file_candidates(Display_settings.palette))
return results
end
end
function initial_candidates()
end
--
if Display_settings.palette == '' then
return candidates
elseif Display_settings.palette:sub(1,1) == '/' then
return {}
else
local results = filter_candidates(candidates, Display_settings.palette)
append(results, file_candidates(Display_settings.palette))
return results
end
end
function run_command_with_args(cmd_with_args)
for _,cand in ipairs(initial_candidates()) do
cand = cand:gsub(' %(.*', '')
local found_offset = cmd_with_args:find(cand, 1, --[[literal pattern]] true)
if found_offset == 1 then
local pivot = #cand+1
if cmd_with_args:sub(pivot, pivot) == ' ' then
run_command(cand, trim(cmd_with_args:sub(pivot)))
end
return
end
function trim(s)
return s:gsub('^%s+', ''):gsub('%s+$', '')
end