Request keywords from command line

This commit is contained in:
Yannick Reiß 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()

View File

@ -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