File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
app/src/main/java/com/coderGtm/yantra/commands/search Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ class Command(terminal: Terminal) : BaseCommand(terminal) {
3333 return
3434 }
3535 val url = when (engine) {
36+
3637 " google" -> " https://www.google.com/search?q="
3738 " duckduckgo" -> " https://duckduckgo.com/?q="
3839 " brave" -> " https://search.brave.com/search?q="
@@ -43,6 +44,7 @@ class Command(terminal: Terminal) : BaseCommand(terminal) {
4344 " qwant" -> " https://www.qwant.com/?q="
4445 " you" -> " https://you.com/search?q="
4546 " playstore" -> " https://play.google.com/store/search?q="
47+ " maps" -> " https://www.google.com/maps?output=search&q="
4648 else -> {
4749 output(terminal.activity.getString(R .string.invalid_search_engine), terminal.theme.errorTextColor)
4850 return
@@ -105,4 +107,4 @@ class Command(terminal: Terminal) : BaseCommand(terminal) {
105107 }
106108 }
107109 }
108- }
110+ }
Original file line number Diff line number Diff line change @@ -18,16 +18,17 @@ search -e=<engine_name> -u=<URL>
1818
1919 **Available Search Engines**:
2020
21- - `google`
22- - `duckduckgo`
23- - `brave`
24- - `bing`
25- - `yahoo`
26- - `ecosia`
27- - `startpage`
28- - `qwant`
29- - `you`
21+ - `google`
22+ - `duckduckgo`
23+ - `brave`
24+ - `bing`
25+ - `yahoo`
26+ - `ecosia`
27+ - `startpage`
28+ - `qwant`
29+ - `you`
3030 - `playstore`
31+ - `maps`
3132=== "` -u ` (url)"
3233 If your favorite search engine is not listed for ` -e ` flag, you can use this flag
3334 to provide a custom search engine to use.
@@ -39,7 +40,7 @@ search -e=<engine_name> -u=<URL>
3940 - `-u=https://example.com/search?q=`
4041
4142 !!! info
42- Queries are URL-encoded before substitution.
43+ Queries are URL-encoded before substitution.
4344
4445## Examples
4546
You can’t perform that action at this time.
0 commit comments