Exemplo n.º 1
0
    'fonts': ("Fonts used for the UI, with optional style/weight/size.\n\n"
              " * Style: `normal`/`italic`/`oblique`\n"
              " * Weight: `normal`, `bold`, `100`..`900`\n"
              " * Size: _number_ `px`/`pt`"),
}

DEFAULT_FONT_SIZE = '10pt' if sys.platform == 'darwin' else '8pt'

DATA = collections.OrderedDict([
    ('general',
     sect.KeyValue(
         ('ignore-case', SettingValue(typ.IgnoreCase(), 'smart'),
          "Whether to find text on a page case-insensitively."),
         ('wrap-search', SettingValue(typ.Bool(), 'true'),
          "Whether to wrap finding text to the top when arriving at the end."),
         ('startpage', SettingValue(typ.List(), 'https://www.duckduckgo.com'),
          "The default page(s) to open at the start, separated by commas."),
         ('auto-search', SettingValue(typ.AutoSearch(), 'naive'),
          "Whether to start a search when something else than a URL is "
          "entered."),
         ('auto-save-config', SettingValue(typ.Bool(), 'true'),
          "Whether to save the config automatically on quit."),
         ('editor',
          SettingValue(typ.ShellCommand(placeholder=True), 'gvim -f "{}"'),
          "The editor (and arguments) to use for the `open-editor` command.\n\n"
          "Use `{}` for the filename. The value gets split like in a shell, so "
          "you can use `\"` or `'` to quote arguments."),
         ('editor-encoding', SettingValue(
             typ.Encoding(), 'utf-8'), "Encoding to use for editor."),
         ('private-browsing', SettingValue(typ.Bool(), 'false'),
          "Do not record visited pages in the history or store web page "
Exemplo n.º 2
0
DEFAULT_FONT_SIZE = '10pt' if sys.platform == 'darwin' else '8pt'


DATA = collections.OrderedDict([
    ('general', sect.KeyValue(
        ('ignore-case',
         SettingValue(typ.IgnoreCase(), 'smart'),
         "Whether to find text on a page case-insensitively."),

        ('wrap-search',
         SettingValue(typ.Bool(), 'true'),
         "Whether to wrap finding text to the top when arriving at the end."),

        ('startpage',
         SettingValue(typ.List(), 'http://www.duckduckgo.com'),
         "The default page(s) to open at the start, separated by commas."),

        ('auto-search',
         SettingValue(typ.AutoSearch(), 'naive'),
         "Whether to start a search when something else than a URL is "
         "entered."),

        ('auto-save-config',
         SettingValue(typ.Bool(), 'true'),
         "Whether to save the config automatically on quit."),

        ('editor',
         SettingValue(typ.ShellCommand(placeholder=True), 'gvim -f "{}"'),
         "The editor (and arguments) to use for the `open-editor` command.\n\n"
         "Use `{}` for the filename. The value gets split like in a shell, so "