New option: +jump-search-browser-fn
This commit is contained in:
parent
24f59d4b0e
commit
dd58479a18
2 changed files with 4 additions and 1 deletions
|
@ -130,5 +130,5 @@ for the provider."
|
||||||
(when (string-empty-p search)
|
(when (string-empty-p search)
|
||||||
(user-error "The search query is empty"))
|
(user-error "The search query is empty"))
|
||||||
(setq +jump--online-last provider)
|
(setq +jump--online-last provider)
|
||||||
(browse-url (format url (url-encode-url search))))
|
(funcall +jump-search-browser-fn (format url (url-encode-url search))))
|
||||||
('error (setq +jump--online-last nil))))
|
('error (setq +jump--online-last nil))))
|
||||||
|
|
|
@ -29,6 +29,9 @@
|
||||||
"An alist that maps online resources to their search url or a function that
|
"An alist that maps online resources to their search url or a function that
|
||||||
produces an url. Used by `+jump/online'.")
|
produces an url. Used by `+jump/online'.")
|
||||||
|
|
||||||
|
(defconst +jump-search-browser-fn #'browse-url
|
||||||
|
"Function to use to open search urls.")
|
||||||
|
|
||||||
(defvar +jump-function-alist nil
|
(defvar +jump-function-alist nil
|
||||||
"TODO")
|
"TODO")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue