Request keywords from command line
This commit is contained in:
parent
5627d03102
commit
4303240b69
|
@ -49,7 +49,7 @@ local function httprequest(url)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.lookup()
|
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
|
local url = "https://dl.acm.org/action/doSearch?AllField=" .. keywords
|
||||||
url, empty = url:gsub(" ", "+")
|
url, empty = url:gsub(" ", "+")
|
||||||
open_window()
|
open_window()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
" Title: ACM sourcer
|
" Title: ACM sourcer
|
||||||
" Description: Search for a selected text block for results in the ACM
|
" Description: Search for a selected text block for results in the ACM
|
||||||
" library
|
" 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>
|
" Maintainer: Yannick Reiss <yannick.reiss@nickr.eu>
|
||||||
|
|
||||||
" Avoid loading the plugin multiple times
|
" Avoid loading the plugin multiple times
|
||||||
|
|
Loading…
Reference in New Issue