File tree 2 files changed +14
-11
lines changed
app/src/main/java/com/coderGtm/yantra/commands/search
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) {
33
33
return
34
34
}
35
35
val url = when (engine) {
36
+
36
37
" google" -> " https://www.google.com/search?q="
37
38
" duckduckgo" -> " https://duckduckgo.com/?q="
38
39
" brave" -> " https://search.brave.com/search?q="
@@ -43,6 +44,7 @@ class Command(terminal: Terminal) : BaseCommand(terminal) {
43
44
" qwant" -> " https://www.qwant.com/?q="
44
45
" you" -> " https://you.com/search?q="
45
46
" playstore" -> " https://play.google.com/store/search?q="
47
+ " maps" -> " https://www.google.com/maps?output=search&q="
46
48
else -> {
47
49
output(terminal.activity.getString(R .string.invalid_search_engine), terminal.theme.errorTextColor)
48
50
return
@@ -105,4 +107,4 @@ class Command(terminal: Terminal) : BaseCommand(terminal) {
105
107
}
106
108
}
107
109
}
108
- }
110
+ }
Original file line number Diff line number Diff line change @@ -18,16 +18,17 @@ search -e=<engine_name> -u=<URL>
18
18
19
19
**Available Search Engines**:
20
20
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`
30
30
- `playstore`
31
+ - `maps`
31
32
=== "` -u ` (url)"
32
33
If your favorite search engine is not listed for ` -e ` flag, you can use this flag
33
34
to provide a custom search engine to use.
@@ -39,7 +40,7 @@ search -e=<engine_name> -u=<URL>
39
40
- `-u=https://example.com/search?q=`
40
41
41
42
!!! info
42
- Queries are URL-encoded before substitution.
43
+ Queries are URL-encoded before substitution.
43
44
44
45
## Examples
45
46
You can’t perform that action at this time.
0 commit comments