fix(search): filter kagi results to only include web pages (t == 0)
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
This commit is contained in:
@@ -135,6 +135,8 @@ M._defaults = {
|
|||||||
if body.data ~= nil then
|
if body.data ~= nil then
|
||||||
local jsn = vim
|
local jsn = vim
|
||||||
.iter(body.data)
|
.iter(body.data)
|
||||||
|
-- search results only
|
||||||
|
:filter(function(result) return result.t == 0 end)
|
||||||
:map(
|
:map(
|
||||||
function(result)
|
function(result)
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user