Reentering ACM link

This commit is contained in:
Yannick Reiß 2024-02-18 13:12:57 +01:00
parent 343cf42ab9
commit 2e85e2e9d5
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 3 additions and 5 deletions

View File

@ -4,18 +4,16 @@ function M.lookup()
local keywords = vim.fn.getreg("*") -- receive yanked text
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
print("Entering the function")
-- 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
local handle = io.popen(command)
local response = handle:read("*a")
handle:close()
print("Test")
print(keywords)
print("Keywords: " .. keywords)
print("URL: " .. url)
print("Response: " .. response)
end