Request keywords from command line
This commit is contained in:
parent
5627d03102
commit
4303240b69
|
@ -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()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
" Title: ACM sourcer
|
||||
" Description: Search for a selected text block for results in the ACM
|
||||
" library
|
||||
" Last Change: Sun 18 Feb 2024 10:36:59 CET
|
||||
" Last Change: Tue 17 Sep 2024 09:48:30 CEST
|
||||
" Maintainer: Yannick Reiss <yannick.reiss@nickr.eu>
|
||||
|
||||
" Avoid loading the plugin multiple times
|
||||
|
|
Loading…
Reference in New Issue