summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--browse.el
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-10-21 10:27:36 -0400
committerbd <bdunahu@operationnull.com>2025-10-21 10:27:36 -0400
commit9b0d08eb1cbf4994c1997208c156b95800714c77 (patch)
tree01685bc86ba9b8b06022de77da108d16d88a8747 /.config/emacs/modules/bd--browse.el
parent8877ba0533750c031fde28d45b3406429333bc96 (diff)
add torbrowser
Diffstat (limited to '.config/emacs/modules/bd--browse.el')
-rw-r--r--.config/emacs/modules/bd--browse.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el
index 44cb7b9..3cd8af8 100644
--- a/.config/emacs/modules/bd--browse.el
+++ b/.config/emacs/modules/bd--browse.el
@@ -11,6 +11,7 @@
(interactive)
(pcase pref
(0 (eww url))
+ (1 (start-process "torbrowser" nil "torbrowser" "--new-window" url))
(_ (start-process "browser" nil "librewolf" "--new-window" url))))
(defun bd/selector-bookmarks ()
@@ -62,16 +63,16 @@
(selector-source-create
"Browser"
:candidates
- (list (bd/search-candidate "SearXNG" "https://searx.operationnull.com/searxng/search?q=" 1)
- (bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 1)
+ (list (bd/search-candidate "SearXNG" "https://searx.operationnull.com/searxng/search?q=" 2)
+ (bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 2)
(bd/search-candidate "Invidious" "https://inv.nadeko.net/search?q=" 0)
- (bd/search-candidate "Urban Dictionary" "https://www.urbandictionary.com/define.php?term=" 1)
+ (bd/search-candidate "Urban Dictionary" "https://www.urbandictionary.com/define.php?term=" 2)
(bd/search-candidate "Archive of Our Own" "https://archiveofourown.org/works/search?work_search%5Bquery%5D=" 0)
(bd/search-candidate "Archwiki" "https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=" 0)
(bd/selector-rip-video)
- (bd/search-candidate "DuckDuckGo" "https://duckduckgo.com/html/?q=" 1)
- (bd/search-candidate "Web" "" 1))))
+ (bd/search-candidate "DuckDuckGo" "https://duckduckgo.com/html/?q=" 2)
+ (bd/search-candidate "Web" "" 2))))
(defun bd/browse-dispatcher ()
"Select and `browse-url' a bookmark or search feature."