add table size
This commit is contained in:
parent
1c871e99c0
commit
70dcc9d091
|
@ -2,7 +2,6 @@ local M = {}
|
||||||
|
|
||||||
function M.lookup()
|
function M.lookup()
|
||||||
local keywords = vim.fn.getreg("*") -- receive yanked text
|
local keywords = vim.fn.getreg("*") -- receive yanked text
|
||||||
keywords = keywords:sub(2, #keywords)
|
|
||||||
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
||||||
url, empty = url:gsub(" ", "+")
|
url, empty = url:gsub(" ", "+")
|
||||||
|
|
||||||
|
@ -37,7 +36,7 @@ function M.lookup()
|
||||||
|
|
||||||
print("Keywords: " .. keywords)
|
print("Keywords: " .. keywords)
|
||||||
print("URL: " .. url)
|
print("URL: " .. url)
|
||||||
print("links: " .. doi_links[0])
|
print("Links: " .. #doi_links)
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Reference in New Issue