Ejemplo n.º 1
0
       "Whether to auto-follow a hint if there's only one left."),
      ('next-regexes',
       SettingValue(typ.RegexList(flags=re.IGNORECASE),
                    r'\bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b'),
       "A comma-separated list of regexes to use for 'next' links."),
      ('prev-regexes',
       SettingValue(
           typ.RegexList(flags=re.IGNORECASE),
           r'\bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,'
           r'\b(<<|«)\b'),
       "A comma-separated list of regexes to use for 'prev' links."),
  )),
 ('searchengines',
  sect.ValueList(
      typ.SearchEngineName(),
      typ.SearchEngineUrl(),
      ('DEFAULT', '${duckduckgo}'),
      ('duckduckgo', 'https://duckduckgo.com/?q={}'),
      ('ddg', '${duckduckgo}'),
      ('google', 'https://encrypted.google.com/search?q={}'),
      ('g', '${google}'),
      ('wikipedia', 'http://en.wikipedia.org/w/index.php?'
       'title=Special:Search&search={}'),
      ('wiki', '${wikipedia}'),
  )),
 ('aliases', sect.ValueList(
     typ.String(forbidden=' '),
     typ.Command(),
 )),
 ('colors',
  sect.KeyValue(
Ejemplo n.º 2
0
         "Whether to auto-follow a hint if there's only one left."),

        ('next-regexes',
         SettingValue(typ.RegexList(flags=re.IGNORECASE),
                      r'\bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b'),
         "A comma-separated list of regexes to use for 'next' links."),

        ('prev-regexes',
         SettingValue(typ.RegexList(flags=re.IGNORECASE),
                      r'\bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,'
                      r'\b(<<|«)\b'),
         "A comma-separated list of regexes to use for 'prev' links."),
    )),

    ('searchengines', sect.ValueList(
        typ.SearchEngineName(), typ.SearchEngineUrl(),
        ('DEFAULT', '${duckduckgo}'),
        ('duckduckgo', 'https://duckduckgo.com/?q={}'),
        ('ddg', '${duckduckgo}'),
        ('google', 'https://encrypted.google.com/search?q={}'),
        ('g', '${google}'),
        ('wikipedia', 'http://en.wikipedia.org/w/index.php?'
                      'title=Special:Search&search={}'),
        ('wiki', '${wikipedia}'),
    )),

    ('aliases', sect.ValueList(
        typ.String(forbidden=' '), typ.Command(),
    )),

    ('colors', sect.KeyValue(