This commit is contained in:
Never Gude 2026-02-09 21:47:15 +01:00
parent 2ca164e1f8
commit 022744c075
4 changed files with 24 additions and 42 deletions

View file

@ -1,7 +1,14 @@
#!/usr/bin/env fish
set default "https://marginalia-search.com/search?query="
set ddg "https://duckduckgo.com/?q="
set input (prompt)
set split_input (string split -m 1 ":" $input)
xdg-open "$default$input"
switch $split_input[1]
case "d"
xdg-open "$ddg$split_input[2]"
case "*"
xdg-open "$default$input"
end