You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuring.md
+1
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)**
141
141
**`searchEngine`** | `string` | _Optional_ | Set the key name for your search engine. Can also use a custom engine by setting this property to `custom`. Currently supported: `duckduckgo`, `google`, `whoogle`, `qwant`, `startpage`, `searx-bar` and `searx-info`. Defaults to `duckduckgo`
142
142
**`customSearchEngine`** | `string` | _Optional_ | You can also use a custom search engine, or your own self-hosted instance. This requires `searchEngine: custom` to be set. Then add the URL of your service, with GET query string included here
143
143
**`openingMethod`** | `string` | _Optional_ | Set your preferred opening method for search results: `newtab`, `sametab`, `workspace`. Defaults to `newtab`
144
+
**`searchBangs`** | `object` | _Optional_ | A key-value-pair set of custom search _bangs_ for redirecting query to a specific app or search engine. The key of each should be the bang you will type (typically starting with `/`, `!` or `:`), and value is the destination, either as a search engine key (e.g. `reddit`) or a URL with search parameters (e.g. `https://en.wikipedia.org/w/?search=`)
Copy file name to clipboardExpand all lines: docs/searching.md
+28-4
Original file line number
Diff line number
Diff line change
@@ -50,13 +50,13 @@ In the above example, pressing <kbd>2</kbd> will launch Bookstack. Or hitting <k
50
50
## Web Search
51
51
It's possible to search the web directly from Dashy, which might be useful if you're using Dashy as your start page. This can be done by typing your query as normal, and then pressing <kbd>⏎</kbd>. Web search options are configured under `appConfig.webSearch`.
52
52
53
-
#### Setting Search Engine
53
+
### Setting Search Engine
54
54
Set your default search engine using the `webSearch.searchEngine` property. This defaults to DuckDuckGo. Search engine must be referenced by their key, the following providers are supported:
You can also use a custom search engine, that isn't included in the above list (like a self-hosted instance of [Whoogle](https://github.com/benbusby/whoogle-search) or [Searx](https://searx.github.io/searx/)). Set `searchEngine: custom`, and then specify the URL (plus query params) to you're search engine under `customSearchEngine`.
In a similar way to opening apps, you can specify where you would like search results to be opened. This is done under the `openingMethod` attribute, and can be set to either `newtab`, `sametab` or `workspace`. By default results are opened in a new tab.
72
72
73
-
#### Disabling Web Search
73
+
### Using Bangs
74
+
An insanely useful feature of DDG is [Bangs](https://duckduckgo.com/bang), where you type a specific character combination at the start of your search query, and it will be redirected the that website, such as '!w Docker' will display the Docker wikipedia page. Dashy has a similar feature, enabling you to define your own custom bangs to redirect search results to a specific app, website or search engine.
75
+
76
+
This is done under the `searchBangs` property, with a list of key value pairs. The key is what you will type, and the value is the destination, either as an identifier or a URL with query parameters.
77
+
78
+
For example:
79
+
80
+
```yaml
81
+
appConfig:
82
+
webSearch:
83
+
searchEngine: 'duckduckgo'
84
+
openingMethod: 'newtab'
85
+
searchBangs:
86
+
/r: reddit
87
+
/w: wikipedia
88
+
/s: https://whoogle.local/search?q=
89
+
/a: https://www.amazon.co.uk/s?k=
90
+
':wolf': wolframalpha
91
+
':so': stackoverflow
92
+
':git': github
93
+
```
94
+
95
+
Note that bangs begging with `!` or `:` must be surrounded them in quotes
96
+
97
+
### Disabling Web Search
74
98
Web search can be disabled, by setting `disableWebSearch`, for example:
Copy file name to clipboardExpand all lines: src/utils/ConfigSchema.json
+11
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,17 @@
260
260
],
261
261
"default": "newtab",
262
262
"description": "Set where you would like search results to open to"
263
+
},
264
+
"searchBangs": {
265
+
"type": "object",
266
+
"additionalProperties": true,
267
+
"examples": [
268
+
{
269
+
"/r": "reddit",
270
+
"!w": "https://whoogle.local/search?q="
271
+
}
272
+
],
273
+
"description": "A KV-pair of custom search bangs. The key should be the shortcut to type, and the value is the search engine, specified either by key or full URL"
0 commit comments