(in-package #:nyxt-user)

;;search engines setup | last one in list becomes default
;;order: "shortcut" "url for search, ~a determines where query is placed" "fallback url when query fails or an empty search"
(defvar *my-search-engines*
  (list
amazon
   '("hns" "/~a" "/") ;;handshake addresses
   '("git" "=~a" "/") ;;git repos
wikipedia
   '("ddg" "=~a" "/") ;;duckduckgo

(define-configuration buffer
  ((search-engines (mapcar (lambda (engine) (apply 'make-search-engine engine))
                                   *my-search-engines*))))

search engines setup | last one in list becomes default
order: "shortcut" "url for search, ~a determines where query is placed" "fallback url when query fails or an empty search"
handshake addresses
git repos
duckduckgo
(in-package #:nyxt-user)

(defvar *my-search-engines*
  (list
amazon
wikipedia

(define-configuration buffer
  ((search-engines (mapcar (lambda (engine) (apply 'make-search-engine engine))
                                   *my-search-engines*))))
