Request keywords from command line

This commit is contained in:
2024-09-17 10:01:47 +02:00
parent 5627d03102
commit 4303240b69
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ local function httprequest(url)
end
function M.lookup()
local keywords = vim.fn.getreg("*") -- receive yanked text
local keywords = vim.fn.input("Keywords: ")
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
url, empty = url:gsub(" ", "+")
open_window()