Example #1
0
 ('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 "
  "icons."),
 ('developer-extras', SettingValue(
     typ.Bool(), 'false'), "Enable extra tools for Web developers.\n\n"
  "This needs to be enabled for `:inspector` to work and also adds an "
  "_Inspect_ entry to the context menu."),
 ('print-element-backgrounds', SettingValue(typ.Bool(), 'true'),
  "Whether the background color and images are also drawn when the "
  "page is printed."),
 ('xss-auditing', SettingValue(typ.Bool(), 'false'),
  "Whether load requests should be monitored for cross-site scripting "
  "attempts.\n\n"
  "Suspicious scripts will be blocked and reported in the inspector's "
  "JavaScript console. Enabling this feature might have an impact on "
Example #2
0
         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 "
         "icons."),

        ('developer-extras',
         SettingValue(typ.Bool(), 'false'),
         "Enable extra tools for Web developers.\n\n"
         "This needs to be enabled for `:inspector` to work and also adds an "
         "_Inspect_ entry to the context menu."),

        ('print-element-backgrounds',
         SettingValue(typ.Bool(), 'true'),