I'm giving up
This commit is contained in:
parent
4162e49c35
commit
936271e74c
|
@ -4,6 +4,8 @@ function M.lookup()
|
||||||
local keywords = vim.fn.getreg("*") -- receive yanked text
|
local keywords = vim.fn.getreg("*") -- receive yanked text
|
||||||
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
||||||
|
|
||||||
|
print("Entering the function")
|
||||||
|
|
||||||
-- Setup a http socket and request
|
-- Setup a http socket and request
|
||||||
local command = string.format("curl -s '%s'", url)
|
local command = string.format("curl -s '%s'", url)
|
||||||
|
|
||||||
|
@ -12,7 +14,7 @@ function M.lookup()
|
||||||
local response = handle:read("*a")
|
local response = handle:read("*a")
|
||||||
handle:close()
|
handle:close()
|
||||||
|
|
||||||
print("Test")
|
print("Test")
|
||||||
print(keywords)
|
print(keywords)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue