-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php.example
More file actions
executable file
·51 lines (43 loc) · 1.79 KB
/
config.php.example
File metadata and controls
executable file
·51 lines (43 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// remove ".example" from filename to activate and
// overwrite default configs. Will be ignored on Updates.
return [
// [false | 'minimal' | true]
'output' => true,
// > 0 (pause between reloads)
'set_timeout' => 0.1,
// ['F5' | 'ctrl+r']
'trigger_key' => 'F5',
// defalt identifier
'srch_title' => 'local-dev-many-title',
// Navigator = Firefox. To get the Name of a window, run
// "xprop | grep WM_CLASS" and click the window of interest.
'srch_browser' => [
'Navigator', 'Google-chrome', 'Opera', 'Brave'
],
// if an error occures, for example an php error, the title identifier
// can't be found because of the error. Since different Browsers do different
// stuff on errors, you can define a list of Strings, that will be checked.
// Firefox for Example just displays "Mozilla Firefox", so we can reload
// windows, that have a title equal to "Mozilla Firefox". Chrome on the other hand displays also the
// url of the page, where the error has occured. For example "https://localhost/?params=too - Google Chrome".
//
// one caveat is, that all windows with the given Strings will be reloaded.
'match_title' => [
'Mozilla Firefox', # title matches
],
// set regular expressions to search for in titles. Useful for Chrome, where you can set hostnames for the
// vhosts on your local machine, for example, given an error on
//
// 'http://localhost.loc/?with=params&more=data'
//
// Chrome would display
// 'localhost.loc/?with=params&more=data - Google Chrome'
//
// so a regex with
// '~localhost.loc~'
// will trigger a reload for the vhost 'localhost.loc', even if errors occures.
'regex_title' => [
// '~localhost.loc~' # title contains
],
];