docs/src/config/search.md

84c4617332578aaf4e9ee68a0a2d7d6258e48243
youtube-tui/docs/src/config/search.md rendered · source · history · blame · raw

50 lines · 964 bytes

7 symbols in this file
 1# Default search options
 2
 3The default search query/filters when launching the TUI, this can be found in `~/.config/youtube-tui/search.yml`, but should not be "customised" like how you would to a config file because it's just a configurable default value.
 4
 5## Example search default value
 6
 7```yaml
 8query: ''
 9filters:
10  sort: Relevance
11  date: None
12  duration: None
13  type: All
14```
15
16<hr>
17
18Below are the description of each field
19
20### query
21
22The default query when you launch the TUI.
23
24*Accept: any string*
25
26### sort
27
28How the search results are sorted.
29
30*Accept: `Relevance`/`Rating`/`Date`/`Views`*
31
32### date
33
34Restrict videos publish date.
35
36*Accept: `None`, `Hour`, `Day`, `Week`, `Month`, `Year`*
37
38### duration
39
40Restrict videos duration.
41
42*Accept: `None`, `Short`, `Medium`, `Long`*
43
44### type
45
46Restrict video types
47
48*Accept: `All`, `Video`, `Channel`, `Playlist`*
49
50> All these options can also be changed in runtime using [search filters](basic_usage.md#searching)