+ 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.
10 lines
491 B
EmacsLisp
10 lines
491 B
EmacsLisp
;;; feature/jump/autoload/evil.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###autoload (autoload '+jump:online "feature/jump/autoload/evil" nil t)
|
|
(evil-define-command +jump:online (query &optional bang)
|
|
"Look up QUERY online. Will prompt for search engine the first time, then
|
|
reuse it on consecutive uses of this command. If BANG, always prompt for search
|
|
engine."
|
|
(interactive "<a><!>")
|
|
(+jump/online (or query (thing-at-point 'symbol t))
|
|
(+jump--online-get-provider bang)))
|