feat: show all sections in man_pages (#512)

:Telescope sections=ALL
This commit is contained in:
JINNOUCHI Yasushi
2021-02-08 17:52:33 +09:00
committed by GitHub
parent 5f1d16acf6
commit b3d3d93869

View File

@@ -615,8 +615,14 @@ end
function make_entry.gen_from_apropos(opts)
local sections = {}
for _, section in ipairs(opts.sections) do
sections[section] = true
if #opts.sections == 1 and opts.sections[1] == 'ALL' then
setmetatable(sections, {
__index = function() return true end,
})
else
for _, section in ipairs(opts.sections) do
sections[section] = true
end
end
local displayer = entry_display.create {