Add a (broken) get command.
This commit is contained in:
parent
ce07baa901
commit
f0f8168ed2
@ -85,6 +85,7 @@ class QuteBrowser(QApplication):
|
||||
self._quit_status = {}
|
||||
self._timers = []
|
||||
self._shutting_down = False
|
||||
self.config = config.config
|
||||
|
||||
sys.excepthook = self._exception_hook
|
||||
|
||||
|
@ -27,6 +27,7 @@ from configparser import (ConfigParser, ExtendedInterpolation, NoSectionError,
|
||||
|
||||
#from qutebrowser.utils.misc import read_file
|
||||
import qutebrowser.config.configdata as configdata
|
||||
import qutebrowser.commands.utils as cmdutils
|
||||
|
||||
config = None
|
||||
state = None
|
||||
@ -141,6 +142,7 @@ class NewConfig:
|
||||
lines += keyval_wrapper.wrap(keyval)
|
||||
return lines
|
||||
|
||||
@cmdutils.register(instance='config')
|
||||
def get(self, section, option, fallback=_UNSET):
|
||||
"""Get the real (transformed) value from a section/option."""
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user