diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index ba63e02be..e0aa2cdff 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -409,6 +409,10 @@ def data(readonly=False): "Whether to shrink the completion to be smaller than the " "configured size if there are no scrollbars."), + ('match-type', + SettingValue(typ.MatchType(), 'contain'), + "Completion matching type"), + readonly=readonly )), diff --git a/qutebrowser/misc/crashdialog.py b/qutebrowser/misc/crashdialog.py index cfc125bb9..41a834b0e 100644 --- a/qutebrowser/misc/crashdialog.py +++ b/qutebrowser/misc/crashdialog.py @@ -20,6 +20,7 @@ """The dialog which gets shown when qutebrowser crashes.""" import re +import os import sys import html import getpass @@ -234,6 +235,11 @@ class _CrashDialog(QDialog): self._crash_info.append(("Config", conf.dump_userconfig())) except Exception: self._crash_info.append(("Config", traceback.format_exc())) + masks = ('DESKTOP_SESSION', 'DE', 'QT_.*', 'PYTHON.*', 'LC_.*', 'LANG') + for key, value in os.environ.items(): + for m in masks: + if re.match(m, key) is not None: + self._crash_info.append((key, value)) def _set_crash_info(self): """Set/update the crash info."""