Generalize +jump/online #140

+ Now uses selection if region is active. Prompts for the query
  otherwise, with the thing at point as the initial input.
+ On first use, prompts for provider. On consecutive uses, reuses
  previous provider. If universal argument is supplied, force the prompt
  to appear.
This commit is contained in:
Henrik Lissner 2017-07-27 02:09:22 +02:00
parent 5057db93f1
commit c31167d747
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 27 additions and 25 deletions

View file

@ -14,7 +14,7 @@
;; in the future. When xref can't be depended on it will fall back to
;; `dumb-jump' to find what you want.
(defvar +jump-search-url-alist
(defvar +jump-search-provider-alist
'(("Google" . "https://google.com/search?q=%s")
("DuckDuckGo" . "https://duckduckgo.com/?q=%s")
("DevDocs.io" . "http://devdocs.io/#q=%s")