Skip to content

Commit 8b3b3e2

Browse files
Added "Suggestion Font Size" setting
2 parents c1e7ba0 + 960bca9 commit 8b3b3e2

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

.idea/gradle.xml

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/coderGtm/yantra/commands/search/Command.kt

+3-1
Original file line numberDiff line numberDiff 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+
}

app/src/main/java/com/coderGtm/yantra/terminal/Helper.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fun showSuggestions(
3232
rawInput: String,
3333
getPrimarySuggestions: Boolean,
3434
getSecondarySuggestions: Boolean,
35-
terminal: Terminal,
35+
terminal: Terminal
3636
) {
3737
Thread {
3838
terminal.activity.runOnUiThread {

app/src/main/res/values/strings.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
<string name="playing_sound_effect">Playing sound effect: %1$s...</string>
567567
<string name="sfx_not_found">The specified sound effect (\'%1$s\') is not found. Add it to the internal storage of the app via \'settings\'.</string>
568568
<string name="cmd_notepad_title"><![CDATA[notepad [list / new <name> / read <name> / delete <name>]]]></string>
569-
<string name="cmd_notepad_help"><![CDATA[A simple in-app notepad to take quick notes on the go. Use the `notepad list` command to view all your notes. To create a new note, type `notepad new <note_name>`. To read an existing note, use `notepad read <note_name>`. If you want to delete a note, use the `notepad delete <note_name>` command.]]></string>
569+
<string name="cmd_notepad_help"><![CDATA[A simple in-app notepad to take quick notes on the go. Use the `notepad list` command to view all your notes. To create a new note, type `notepad new <note_name>`. To read an existing note, use `notepad read <note_name>` and to edit a note, use the `notepad edit <note_name>` command. If you want to delete a note, use the `notepad delete <note_name>` command.]]></string>
570570
<string name="no_notes_found">No notes found...</string>
571571
<string name="notepad">Notepad:</string>
572572
<string name="note_exists">A note by this name already exists! Please use a different name.</string>
@@ -580,4 +580,5 @@
580580
<string name="terminal_text_color_reset">Terminal text color reset to theme.</string>
581581
<string name="terminal_text_color_set_to">Terminal text color set to #%1$s</string>
582582
<string name="no_sound_effects_found">No custom sound effects found!</string>
583+
<string name="edit_note">Edit Note (%1$s)</string>
583584
</resources>

docs/commands/search.md

+11-10
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)