Reentering ACM link
This commit is contained in:
@@ -4,18 +4,16 @@ 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'", "https://nickr.eu")
|
local command = string.format("curl -s '%s'", url)
|
||||||
|
|
||||||
-- Execute the curl command and capture its output
|
-- Execute the curl command and capture its output
|
||||||
local handle = io.popen(command)
|
local handle = io.popen(command)
|
||||||
local response = handle:read("*a")
|
local response = handle:read("*a")
|
||||||
handle:close()
|
handle:close()
|
||||||
|
|
||||||
print("Test")
|
print("Keywords: " .. keywords)
|
||||||
print(keywords)
|
print("URL: " .. url)
|
||||||
print("Response: " .. response)
|
print("Response: " .. response)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user