Skip to content

Commit 8fcbc46

Browse files
Merge pull request #217 from cvburgess/kagi-search
Add support for Kagi search
2 parents 6b3622d + 17d6db2 commit 8fcbc46

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Enforce PR base branch
2+
on:
3+
pull_request:
4+
types: [opened, edited, synchronize]
5+
6+
jobs:
7+
check-branch:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Fail if PR targets main
11+
if: github.event.pull_request.base.ref == 'main'
12+
run: |
13+
echo "PRs must target dev, not main."
14+
exit 1

Nook/Managers/SearchManager/Utils.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public enum SearchProvider: String, CaseIterable, Identifiable, Codable, Sendabl
6363
case perplexity
6464
case unduck
6565
case ecosia
66+
case kagi
6667

6768
public var id: String { rawValue }
6869

@@ -76,6 +77,7 @@ public enum SearchProvider: String, CaseIterable, Identifiable, Codable, Sendabl
7677
case .perplexity: return "Perplexity"
7778
case .unduck: return "Unduck"
7879
case .ecosia: return "Ecosia"
80+
case .kagi: return "Kagi"
7981
}
8082
}
8183

@@ -89,6 +91,7 @@ public enum SearchProvider: String, CaseIterable, Identifiable, Codable, Sendabl
8991
case .perplexity: return "www.perplexity.ai"
9092
case .unduck: return "duckduckgo.com"
9193
case .ecosia: return "www.ecosia.org"
94+
case .kagi: return "kagi.com"
9295
}
9396
}
9497

@@ -110,6 +113,8 @@ public enum SearchProvider: String, CaseIterable, Identifiable, Codable, Sendabl
110113
return "https://unduck.link?q=%@"
111114
case .ecosia:
112115
return "https://www.ecosia.org/search?q=%@"
116+
case .kagi:
117+
return "https://kagi.com/search?q=%@"
113118
}
114119
}
115120
}

0 commit comments

Comments
 (0)